I am trying to compile WASM from go using tinygo for use in go-wasmer. I have the import memory working for AssemblyScript but when I use the flag for the WASM from go and try to create my instance I get this error
Host env initialization error: Missing export memory
Is there a way to manually export memory that will then be replaced by the imported memory?
Here is my target.json
{
"inherits": ["wasm"],
"linker": "wasm-ld",
"libc": "wasi-libc",
"goarch": "wasm",
"cflags": [
"--target=wasm32--wasi",
"--sysroot={root}/lib/wasi-libc/sysroot",
"-Oz"
],
"ldflags": [
"--import-memory",
"--max-memory=1310720",
"--initial-memory=131072"
]
}