rename to examples

pull/2/head
vedhavyas 2019-08-20 14:41:49 -07:00
parent bf35d691af
commit 2a22ca2a7f
No known key found for this signature in database
GPG Key ID: 317BF0923E3EB7E5
3 changed files with 3 additions and 3 deletions

View File

@ -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)
} }