WebAssembly only supports i32, i64, f32, and f64 for the moment. So you need to allocate the string manually inside the Wasm memory, then pass the pointer of that string to the Wasm function.
I will add an example to showcase that, many people are asking this :-).
Would it be possible to make go functions that wrap string passing, and add them to the go api? Is freeing the memory manually inside the wasm vm something that can be delegated to the vm?
More specifically, here's how you can call Go host functions: https://github.com/wasmerio/wasmer-go/blob/master/examples/e...
[1] https://github.com/wasmerio/wasmer-go