mirror of https://github.com/CrimsonTome/tldr.git
go-env: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>client-spec/clarity
parent
ea24f0643a
commit
e9bd9da77a
|
@ -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}}`
|
||||
|
|
Loading…
Reference in New Issue