go env
Manage environment variables used by the Go toolchain. More information: https://golang.org/cmd/go/#hdr-Print_Go_environment_information.
- 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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.