Skip to content

Latest commit

 

History

History
38 lines (36 loc) · 727 Bytes

README.MD

File metadata and controls

38 lines (36 loc) · 727 Bytes
export GO111MODULE=on
go mod vendor
go bulid

wasm

EMCC_WASM_BACKEND=1 emcc  -std=c++11 -s WASM=1 main.cpp

progress

  • File IO
  • Sigal
  • Time
  • Math
  • http
  • regex
  • Thread
  • c++11 std

how to use

➜  wasmgo git:(master) ✗ ./wasmgo                                                                   
  -f string
        wasm file name 
  -n string
        wasm method name (default "_main")
  -v    open debug mode (-v open)

eg.

   ./wasmgo -f /Users/shang/Desktop/code/CoinIDLib/build/core.wasm -n _main -v

windows build cgo

1. install gcc-5.1.0-tdm64-1-core.zip #set to path
2. install Cygwin # install make