rename to examples
parent
bf35d691af
commit
2a22ca2a7f
|
@ -3,10 +3,10 @@ package main
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
wasmgo "github.com/vedhavyas/wasm"
|
"github.com/vedhavyas/go-wasm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func proxy(b *wasmgo.Bridge) wasmgo.Func {
|
func proxy(b *wasm.Bridge) wasm.Func {
|
||||||
return func(args []interface{}) (i interface{}, e error) {
|
return func(args []interface{}) (i interface{}, e error) {
|
||||||
log.Println("In Go", args)
|
log.Println("In Go", args)
|
||||||
return b.CallFunc("addition", args)
|
return b.CallFunc("addition", args)
|
||||||
|
@ -14,7 +14,7 @@ func proxy(b *wasmgo.Bridge) wasmgo.Func {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
b, err := wasmgo.BridgeFromFile("test", "./simple/prog/main.wasm", nil)
|
b, err := wasm.BridgeFromFile("test", "./examples/wasm/main.wasm", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
Binary file not shown.
Loading…
Reference in New Issue