Documentation ¶
Overview ¶
Example from: https://github.com/golang/go/wiki/WebAssembly#getting-started
Build:
GOOS=js GOARCH=wasm go build -o main.wasm cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
# install goexec: go get -u github.com/shurcooL/goexec goexec 'http.ListenAndServe(`:8088`, http.FileServer(http.Dir(`.`)))'
Click to show internal directories.
Click to hide internal directories.