System Grab Bag

View all TLDR pages from common (or from all pages)

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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.