# README
go webassembly experiments
Requires go1.13
Building and running
$ cd {proj} # sub folder (i.e. bouncy, rainbow-mouse)
$ go get -v # ignore the js warning
$ ./build.sh
$ go run ../serve.go
Serve with caddy or anything else that is able to set the mimetype 'application/wasm' for .wasm files
# Packages
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go.
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go.
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go.
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go.
Drag mouse on canvasWasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go.