Open mougeCM opened 2 years ago
The ideal situation is to encapsulate linear memory reading and provide Write and Read methods
Similar to wazero demo: https://github.com/tetratelabs/wazero/blob/main/examples/allocation/tinygo/greet.go
in wasmer-go i cannot find this example, so i don't known how to transfer struct and string to wasm file, the wazero have this example ?
I found: https://github.com/wasmerio/wasmer-go/blob/master/examples/example_memory_test.go
Can you give a go code instead of wat?