go-wasm/simple/caller/main.go

19 lines
252 B
Go
Raw Normal View History

2019-08-06 16:03:11 +03:00
package main
import (
"log"
wasmgo "github.com/vedhavyas/wasm"
)
func main() {
2019-08-07 13:47:59 +03:00
err := wasmgo.Bridge.InitWASM("./simple/prog/main.wasm", nil)
2019-08-06 16:03:11 +03:00
if err != nil {
log.Fatal(err)
}
2019-08-07 13:47:59 +03:00
if err := wasmgo.Bridge.Run(); err != nil {
2019-08-06 16:03:11 +03:00
log.Fatal(err)
}
}