aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/examples/wasm/wasm.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/wasm/wasm.go')
-rw-r--r--src/examples/wasm/wasm.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/examples/wasm/wasm.go b/src/examples/wasm/wasm.go
new file mode 100644
index 000000000..846fa7499
--- /dev/null
+++ b/src/examples/wasm/wasm.go
@@ -0,0 +1,9 @@
+package main
+
+func main() {
+}
+
+//go:export add
+func add(a, b int) int {
+ return a + b
+}