Skip to content

Language Guide: Add (tiny)go #37

@kate-goldenring

Description

@kate-goldenring

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions