github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/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() {}