tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.51k stars 914 forks source link

About wasmexport return type problem #4561

Open CrazyXi opened 4 weeks ago

CrazyXi commented 4 weeks ago

Compilation error //go:wasmexport hello: unsupported result type string //go:wasmexport hello: unsupported result type interface{}

How should I return the specified type?