js-exec-go-wasm
js-exec-go-wasm copied to clipboard
Browser and Nodejs execute WASM code compiled by Golang or TinyGo
js execute WASM complied by Golang or TinyGo
- Go Version:
go version go1.21.5 darwin/arm64
- TinyGo Version:
tinygo version 0.30.0 darwin/amd64 (using go version go1.21.5 and LLVM version 16.0.1)
- Nodejs Version:
v18.17.1
- wasm source code
Official Golang solution
- Golang
TinyGo solution
- tinygo
Pack WASM
Universal wasm for Node and Browsers :) :
- cross-wasm
Example
-
Browser
- ESM
- UMD
- WebWorker
- Webpack
- Nodejs