Add instructions for compiling go modules and componentizing them. For example:
tinygo build -target=wasi foo.go
wasm-tools component embed --world myworld ./foo.wit foo.wasm -o foo.embed.wasm
wasm-tools component new -o foo.component.wasm --adapt wasi_snapshot_preview1="$COMPONENT_ADAPTER" foo.embed.wasm
where the adapter is built from https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi-preview1-component-adapter
Add instructions for compiling go modules and componentizing them. For example:
tinygo build -target=wasi foo.go wasm-tools component embed --world myworld ./foo.wit foo.wasm -o foo.embed.wasm wasm-tools component new -o foo.component.wasm --adapt wasi_snapshot_preview1="$COMPONENT_ADAPTER" foo.embed.wasmwhere the adapter is built from https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi-preview1-component-adapter