From 2a22ca2a7f69f3a9f2f4717b408556ca6926c15b Mon Sep 17 00:00:00 2001 From: vedhavyas Date: Tue, 20 Aug 2019 14:41:49 -0700 Subject: [PATCH] rename to examples --- {simple => examples}/caller/main.go | 6 +++--- {simple/prog => examples/wasm}/main.go | 0 {simple/prog => examples/wasm}/main.wasm | Bin 2670356 -> 2670361 bytes 3 files changed, 3 insertions(+), 3 deletions(-) rename {simple => examples}/caller/main.go (76%) rename {simple/prog => examples/wasm}/main.go (100%) rename {simple/prog => examples/wasm}/main.wasm (99%) 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 61dbb9d0e71c6feb3246b49db31cf0d3eeaf841b..9fdae535042db312db200f11ff88b214375849f6 100755 GIT binary patch delta 975 zcmYk)TS!z<6b9gR&bZVuD@_|q)6B_9DLa{(zDPm?iiswgiU=~+^BhF@a=!?#W@^UXZQXYRR*9lIw!3@ zCNHBREvuj`Jtww2-Eho3U(^z{#f?O<^G`UkzOPxd9E%ta6KK(4J3wIVlq z>$%YjLY;)?y#DL$a2i{JU_Ez2FoeJ^2!$}%?KZZAo1>NA&a#vp+3{;p6XOp8D@3J^)cRb$B{C{q`{|2 zrV+>oZ+JDq)DJ}v4DZL8#-SWESRG?}2o6XE1r|n`Iw2o|VQGYE3aTL2u4`B#dHsWp0TZm;V48tih=*ST zOiw^U1_Z#Hex|{G2U9T$6MS|t-G>H928M+`rY^{ZFj&6MGy!KI3cmE>9cX}LAeirA zYJ)5Yf)CwH(@+D6po14(m@b@hVA~JhI+g??sbJyj0T*tTWb!c_D6$Lfh4jo%t zS>Ui(Q}cK4EY8zXU3pHY+upcymo?wwu&ggDDY2dqQYccWQs|`6OTkhEND(N-0x5!| zSSZCJDT1X4ks?%zFe$>NFh~(0#bTd`JRhzMv<4d@AqtHCU_V$fT#F7UruY-{4FXo!LNehDmvWe^APu-u<`YQ^>xNY z{>sth;TB_zq9Vpv^|5Y@6(7&{54_14rV(S3qACH3s?)0zI^AQPsw#b~UiVICnC>=h z9%eGb$J8iFcV2eVyFPoWzQHX)hdYbVov@IV&m;pKUzb8rC6@a-Ja z7}UciP+;OLQ#