Hello world example for WebAssembly in Go

Prerequisites:

  1. Go. (https://golang.org/doc/install)
  2. Make command (Nice to have).
  3. WSL/WSL2 are recommended if you are using Windows.

Build:

make build

Run:

make run

Clean:

make clean

View result from your browser

  1. Browse the address your server listing.
  2. Open your browser console.
  3. Click the Run buttom.
  4. 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