Skip to content

Instantly share code, notes, and snippets.

@olso
Last active January 6, 2021 13:59
Show Gist options
  • Save olso/bcdf728f8837cb9922157fd50d5e7e28 to your computer and use it in GitHub Desktop.
Save olso/bcdf728f8837cb9922157fd50d5e7e28 to your computer and use it in GitHub Desktop.
build_go:
docker run --rm \
-v `pwd`/src:/game \
--env GOOS=js --env GOARCH=wasm \
golang:1.12-rc \
/bin/bash -c "go build -o /game/game.wasm /game/main.go; cp /usr/local/go/misc/wasm/wasm_exec.js /game/wasm_exec.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment