export GO111MODULE=on
go mod vendor
go bulid
wasm
EMCC_WASM_BACKEND=1 emcc -std=c++11 -s WASM=1 main.cpp
- File IO
- Sigal
- Time
- Math
- http
- regex
- Thread
- c++11 std
➜ wasmgo git:(master) ✗ ./wasmgo
-f string
wasm file name
-n string
wasm method name (default "_main")
-v open debug mode (-v open)
./wasmgo -f /Users/shang/Desktop/code/CoinIDLib/build/core.wasm -n _main -v
1. install gcc-5.1.0-tdm64-1-core.zip #set to path
2. install Cygwin # install make