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>
16 lines
274 B
Go
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
|
|
}
|