Skip to main content
The -e flag prints the current Go environment: the active version, all GO* environment variables, the relevant PATH entries, and the status of each symlink in the workspace.

Syntax

igo -e

Example

igo -e

What it does

1

Read the active version

igo reads ~/go/version and prints the currently active Go version.
2

Print all GO* environment variables

igo scans the current process environment and prints every variable whose name starts with GO (e.g. GOBIN, GOPATH, GOROOT, GOMODCACHE, GOOS, GOARCH), sorted alphabetically.
3

Set any missing Go env vars

If any of GOBIN, GOPATH, GOROOT, or GOMODCACHE are not set in the environment, igo sets them for the current process using the expected workspace paths:
VariableValue
GOBIN~/go/bin
GOPATH~/go/path
GOROOT~/go/root
GOMODCACHE~/go/versions/<active version>/pkg/mod
4

Print PATH entries relevant to Go

igo checks PATH for the ~/go/shims and ~/go/bin directories and prints any Go-related entries. Stale entries pointing at versions other than the currently active one are excluded from the output.
5

Print symlinks and their targets

igo finds all symlinks in the workspace and prints each one with its resolved target and a or indicator showing whether the target path resolves correctly.
Use igo -e to diagnose a broken environment or verify your setup after installation. The symlink status indicators make it easy to spot which workspace links are broken.

Build docs developers (and LLMs) love