go-wasm/simple/caller/main.go

19 lines
250 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-15 21:12:20 +03:00
b, err := wasmgo.BridgeFromFile("test", "./simple/prog/main.wasm", nil)
2019-08-06 16:03:11 +03:00
if err != nil {
log.Fatal(err)
}
2019-08-13 18:11:23 +03:00
if err := b.Run(); err != nil {
2019-08-06 16:03:11 +03:00
log.Fatal(err)
}
}