From 21208d42ac37049db8b8a368d9a1363dceeb7533 Mon Sep 17 00:00:00 2001 From: vedhavyas Date: Mon, 23 Sep 2019 23:37:59 +0200 Subject: [PATCH] refactor --- examples/{caller => function-caller}/main.go | 2 +- examples/{wasm => function-wasm}/main.go | 0 examples/{wasm => function-wasm}/main.wasm | Bin 2934596 -> 2934605 bytes examples/http-caller/main.go | 2 +- examples/{http => http-wasm}/main.go | 0 examples/{http => http-wasm}/main.wasm | Bin 8238019 -> 8238024 bytes 6 files changed, 2 insertions(+), 2 deletions(-) rename examples/{caller => function-caller}/main.go (93%) rename examples/{wasm => function-wasm}/main.go (100%) rename examples/{wasm => function-wasm}/main.wasm (99%) rename examples/{http => http-wasm}/main.go (100%) rename examples/{http => http-wasm}/main.wasm (99%) diff --git a/examples/caller/main.go b/examples/function-caller/main.go similarity index 93% rename from examples/caller/main.go rename to examples/function-caller/main.go index 6124257..3769496 100644 --- a/examples/caller/main.go +++ b/examples/function-caller/main.go @@ -24,7 +24,7 @@ func multiply(b *wasm.Bridge, a int) (int, error) { } func main() { - b, err := wasm.BridgeFromFile("test", "./examples/wasm/main.wasm", nil) + b, err := wasm.BridgeFromFile("test", "./examples/function-wasm/main.wasm", nil) if err != nil { panic(err) } diff --git a/examples/wasm/main.go b/examples/function-wasm/main.go similarity index 100% rename from examples/wasm/main.go rename to examples/function-wasm/main.go diff --git a/examples/wasm/main.wasm b/examples/function-wasm/main.wasm similarity index 99% rename from examples/wasm/main.wasm rename to examples/function-wasm/main.wasm index 46875cce909fb5939e2aa5d0a8ab3d252b56eb35..b05d19666c5ff366604a8111c097f85810497717 100755 GIT binary patch delta 976 zcmWO4O-K|_5Ww-VkI}W#RZ~|>D|1)f%w5+&r9=;q7D(V(f`5kG4Jwbn3>Vj_Y=l3RI<4~&=Be$ zJk;C1wtPp|y1J(3wTHI(Hdcg|1qXwN*M~xD4)%t7Hw5>DeLYnJebrlPR{MK4bO!uA z4Z(E{Exwv?ZzvG1uIOy)uBr;u?CorBZ$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