![hello-world-go-wasmer-cli package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2F6d8f3463-27d0-43e0-b029-f19c3c354edb_default_icon%2F8df27691965b96ff8d14a28947ef9b4b.png&w=96&q=75)
jcbhmr/hello-world-go-wasmer-cli
Public
wasmer run jcbhmr/hello-world-go-wasmer-cli
wasmer run jcbhmr/hello-world-go-wasmer-cli
"Hello world!" Go Wasmer CLI
π¨βπ» Example CLI application built with Go and distributed via Wasmer
wasmer run jcbhmr/hello-world-go-wasmer-cli -- --name="Alan Turing"
#=> Hello Alan Turing!
πΏοΈ Written in Go
πͺ Compiled to WebAssembly
π¨βπ» Runnable on any device from a single .wasm
binary
π Distributed via the wasmer.io registry
Installation
There's nothing to install! The Wasmer CLI doesn't (yet) offer a first-class
way to wasmer install <pkg>
globally.
Usage
wasmer run jcbhmr/hello-world-go-wasmer-cli -- --name="Alan Turing"
#=> Hello Alan Turing!
Options
--name
: The name to put in the output messageHello ${name}!
.
Development
π Go 1.21 supports WASI preview 1! Yay! π₯³ Make sure you have installed the latest version of the Go toolchain.
./just build
You can use the Wasmer CLI to run your compiled WASI WebAssembly binary.
wasmer run $WASMERFLAGS . -- --name="Ada Lovelace"
Each time a new GitHub release is released it gets wasmer publish
-ed.