CmdID / Commands
Manage environment variables used by the Go toolchain. tldr-pages
On several platforms
Opens CmdID with your command. It is read in your browser and sent nowhere.
Show all environment variables
go env
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