go env
Manage environment variables used by the Go toolchain.
- 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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).