1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:22:08 +02:00

go-env: apply suggestions

Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
gonejack 2020-05-11 12:03:05 +08:00 committed by Starbeamrainbowlabs
parent ea24f0643a
commit e9bd9da77a
No known key found for this signature in database
GPG key ID: 1BE5172E637709C2

View file

@ -1,16 +1,20 @@
# go env # go env
> Tool for printing Go environment information. > Manage environment variables used by the Go toolchain.
> More information: <https://golang.org/cmd/go/>. > More information: <https://golang.org/cmd/go/#hdr-Print_Go_environment_information>.
- Show all go environment information: - Show all environment variables:
`go env` `go env`
- Show specific environment variable: - Show an environment variable:
`go env {{GOPATH}}` `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}}`