Files
wazero/examples/multiple-results/multiple-results_test.go
Crypt Keeper 106f96b066 Adds import-go example (#466)
This shows how to define, export and import functions written in Go.

Fixes #464

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-04-15 09:31:52 +08:00

16 lines
274 B
Go

package multiple_results
// Example_main ensures the following will work:
//
// go run multiple-results.go
func Example_main() {
main()
// Output:
// result-offset/wasm: age=37
// result-offset/host: age=37
// multi-value/wasm: age=37
// multi-value/host: age=37
}