go-env: add page (#4003)

Signed-off-by: gonejack <igonejack@gmail.com>
client-spec/clarity
gonejack 2020-05-08 20:40:17 +08:00 committed by Starbeamrainbowlabs
parent 6f6d15a034
commit 16c3791dd9
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
1 changed files with 16 additions and 0 deletions

16
pages/common/go-env.md Normal file
View File

@ -0,0 +1,16 @@
# go env
> Tool for printing Go environment information.
> More information: <https://golang.org/cmd/go/>.
- Show all go environment information:
`go env`
- Show specific environment variable:
`go env {{GOPATH}}`
- Set go environment value:
`go env -w {{NAME}}={{VALUE}}`