mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 11:22:09 +02:00
go-env: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
parent
ea24f0643a
commit
e9bd9da77a
1 changed files with 10 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue