go-wasm/simple/caller/main.go

19 lines
252 B
Go

package main
import (
"log"
wasmgo "github.com/vedhavyas/wasm"
)
func main() {
err := wasmgo.Bridge.InitWASM("./simple/prog/main.wasm", nil)
if err != nil {
log.Fatal(err)
}
if err := wasmgo.Bridge.Run(); err != nil {
log.Fatal(err)
}
}