Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 293 Bytes

readme.md

File metadata and controls

15 lines (11 loc) · 293 Bytes

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();