Golang environments

From wikinotes
Revision as of 19:38, 23 May 2022 by Will (talk | contribs) (Created page with "= Documentation = <blockquote> {| class="wikitable" |- | environment variables || https://pkg.go.dev/cmd/go#hdr-Environment_variables |- |} </blockquote><!-- Documentation -->...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation

environment variables https://pkg.go.dev/cmd/go#hdr-Environment_variables

Environment Variables

A small subset of useful environment variables.

GOPATH=
GOBIN=

GOPRIVATE=
GOPROXY=

Go Env

go env -w GOBIN=/foo/bar/bin  # set default envvar val within environment
go env -u GOBIN               # unset environment variable set by 'go env'