diff --git a/simple/caller/main.go b/examples/caller/main.go similarity index 76% rename from simple/caller/main.go rename to examples/caller/main.go index d54a4ac..32956cd 100644 --- a/simple/caller/main.go +++ b/examples/caller/main.go @@ -3,10 +3,10 @@ package main import ( "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) { log.Println("In Go", args) return b.CallFunc("addition", args) @@ -14,7 +14,7 @@ func proxy(b *wasmgo.Bridge) wasmgo.Func { } 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 { log.Fatal(err) } diff --git a/simple/prog/main.go b/examples/wasm/main.go similarity index 100% rename from simple/prog/main.go rename to examples/wasm/main.go diff --git a/simple/prog/main.wasm b/examples/wasm/main.wasm similarity index 99% rename from simple/prog/main.wasm rename to examples/wasm/main.wasm index 61dbb9d..9fdae53 100755 Binary files a/simple/prog/main.wasm and b/examples/wasm/main.wasm differ