commands.sh

go env

all

Manage environment variables used by the Go toolchain.

More info →

Examples (4)

Show all environment variables

Show a specific environment variable

go env GOPATH

Set an environment variable to a value

go env -w GOBIN=path/to/directory

Reset an environment variable's value

go env -u GOBIN
made by @shridhargupta | data from tldr-pages