TinyGo is a Go compiler that mainly targets embedded systems, by natively including libraries for a wide range of microcontrollers; and WASM. Always use the [go] tag along with this one, plus any applicable architecture tag.
TinyGo is a Go compiler that mainly targets embedded systems. It can output significantly smaller binaries compared with gc
, the official Go compiler.
TinyGo is also a good compiler choice for targeting WASM. It provides comment directives like //export
that help simplify development.
Useful links:
- TinyGo documentation index
- Supported stdlib packages. Some packages are marked as not importable; these are not supported by TinyGo, most notably
net/http
. - Supported microcontrollers
- WASM Tutorial