wa-lang.org/wazero@v1.0.2/examples/basic/testdata/add.go (about) 1 package main 2 3 //export add 4 func add(x, y uint32) uint32 { 5 return x + y 6 } 7 8 // main is required for the `wasi` target, even if it isn't used. 9 // See https://wazero.io/languages/tinygo/#why-do-i-have-to-define-main 10 func main() {}