Install the igo binary
Follow the installation guide to download the
igo binary, set permissions, and add it to your PATH.Install a Go version
Install Go 1.23.4:igo downloads the official tarball from
go.dev/dl, extracts it under ~/go/versions/1.23.4/, sets it as the active version, and writes the shell activator script to ~/.igo.Source the shell activator
igo writes To load it automatically in every new terminal session, add the The activator sets the following variables:
~/.igo during the first install. Source it to set up your environment:source line to your shell config:- zsh
- bash
| Variable | Value |
|---|---|
IGO_ROOT | ~/go — the igo workspace root |
IGO_SHIMS | ~/go/shims — shim scripts, prepended to PATH |
IGO_BIN | ~/go/bin — active Go bin, prepended to PATH |
GOROOT | Path to the active Go toolchain |
GOBIN | Bin directory of the active Go toolchain |
GOPATH | Versioned Go path for the active version |
GOMODCACHE | Module cache for the active version |
Next steps
Install command
Full reference for
igo -i, including custom install directories and debug optionsSwitch versions
Switch between installed Go versions with
igo -sConfiguration flags
Customize the workspace directory, target OS, architecture, and more
Shell setup
Details on the ~/.igo activator and environment variables