Added a tinygo example.

This commit is contained in:
BjoernSchilberg
2023-02-12 22:24:16 +01:00
parent 4fe4bce0ad
commit 937ccf60c9
3 changed files with 67 additions and 0 deletions

6
examples/tinygo/build.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
tinygo build -o cart.wasm -target target.json ./main.go
uw8 filter-exports cart.wasm cart.wasm && \
#wasm-opt -Oz --fast-math --strip-producers -o cart.wasm cart.wasm && \
uw8 pack -l 9 cart.wasm cart.uw8