- Install tinygo
- Install/Use go1.13 (see tinygo-org/tinygo#930)
For building/refreshing the WASM part of the frontend, run
export GOROOT=`go1.13 env GOROOT` # see https://github.com/tinygo-org/tinygo/issues/930#issuecomment-605597556
go generate ./...
This project uses https://github.com/agnivade/wasmbrowsertest
Everything for running should be setup by go generate ./...
(in wasm-folder) already.
If you want to run this from shell, please make sure to set
export GOOS=js
export GOARCH=wasm
go run main.go # make sure to use go1.14 for that