diff --git a/pages/common/go-env.md b/pages/common/go-env.md index dbaa076c05..e66a7d0b21 100644 --- a/pages/common/go-env.md +++ b/pages/common/go-env.md @@ -1,16 +1,20 @@ # go env -> Tool for printing Go environment information. -> More information: . +> Manage environment variables used by the Go toolchain. +> More information: . -- Show all go environment information: +- Show all environment variables: `go env` -- Show specific environment variable: +- Show an environment variable: `go env {{GOPATH}}` -- Set go environment value: +- Set an environment value: -`go env -w {{NAME}}={{VALUE}}` +`go env -w {{GOBIN}}={{path/to/directory}}` + +- Reset an environment value: + +`go env -u {{GOBIN}}`