SDKActive

TinyGo WASI Support

Use TinyGo to compile Go programs to WebAssembly for WASI runtimes, supporting wasip1 and wasip2.

Open source page ↗

Field note

What it does

TinyGo provides a Go compiler for WebAssembly targeting the WebAssembly System Interface (WASI). It supports WASI Preview 1 and Preview 2, enabling programs to run in runtimes like Extism, Fastly Compute@Edge, Fermyon Spin, tau, and wazero.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

sdk

Not filed / https://extism.org/

sdk

Not filed / https://www.fastly.com/products/edge-compute

sdk

Not filed / https://developer.fermyon.com/spin

sdk

Not filed / https://wazero.io/

Product features

Product features

Compile Go to WebAssembly

Compile Go programs to WebAssembly for WASI runtimes.

Import WASI functions

Use //go:wasmimport to import functions from the host.

wasip1 target

Target the wasip1 platform for WASI Preview 1.

wasip2 target

Support for WASI Preview 2.