You need:
- Go installed on your machine
- A sense of adventure
$ make bootstrap # one-time setup
$ make run
In this project:
wasm_exec.js
: The Golang js runtime. Copied from$GOROOT/misc/wasm
index.html
: HTML page which loadswasm_exec.js
andmain.js
.main.go
: Our go file which exposes go code to jsmain.js
: our main js file which loads our javascript and makes calls into webassembly