Welcome to the new Golem Cloud Docs! 👋
Go Language Guide
Setup

Setup Go

Creating Golem components in Go requires using the latest version of the TinyGo compiler (opens in a new tab) and installing some common WebAssembly tooling.

Installing TinyGo

Use the official guide (opens in a new tab) to install the latest stable version of the TinyGo compiler.

Note that TinyGo also requires Go to be installed too. Follow the recommended steps here (opens in a new tab) to download and install the latest recommended version.

For MacOS TinyGo can be installed using brew:

brew tap tinygo-org/tools
brew install tinygo

Install WebAssembly tooling

You will need both wasm-tools and wit-bindgen to work on Go WebAssembly projects. Consult the dedicated page for instructions on how to install them.