go-wasm/simple/caller/main.go

19 lines
250 B
Go

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