1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/go-env.md

17 lines
279 B
Markdown
Raw Normal View History

# 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}}`