See https://github.com/golang/go/wiki/WebAssembly#getting-started
go get -u github.com/shurcooL/goexec
GOOS=js GOARCH=wasm go build -o main.wasm
goexec 'http.ListenAndServe(:8080
, http.FileServer(http.Dir(.
)))'
WASM tutorial in Golang
See https://github.com/golang/go/wiki/WebAssembly#getting-started
go get -u github.com/shurcooL/goexec
GOOS=js GOARCH=wasm go build -o main.wasm
goexec 'http.ListenAndServe(:8080
, http.FileServer(http.Dir(.
)))'
WASM tutorial in Golang