go-wasm
v0.0.3
Published
go WebAssembly lib
Downloads
557
Readme
Go WebAssembly Lib
How To Use
const {Go} = require('go-wasm')
const start = async function start() {
const go = new Go()
const result = await WebAssembly.instantiate(fs.readFileSync('./lib.wasm'), go.importObject)
await go.run(result.instance)
}
start();