go-env: apply suggestions

Signed-off-by: gonejack <igonejack@gmail.com>
client-spec/clarity
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
1 changed files with 10 additions and 6 deletions

View File

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