Hello world example for WebAssembly in Go
Prerequisites:
- Go. (https://golang.org/doc/install)
- Make command (Nice to have).
- WSL/WSL2 are recommended if you are using Windows.
Build:
make build
Run:
make run
Clean:
make clean
View result from your browser
- Browse the address your server listing.
- Open your browser console.
- Click the Run buttom.
- The result should show in the console.
Note:
Files wasm_exec.js and index.html in the folder static are from https://github.com/golang/go/tree/master/misc/wasm