Go uses a lot of environment variables which are used within Go.

But not available in your global environment by default - such as with runningenv in the shell.

Usage

$ go env -h    
usage: go env [-json] [-u] [-w] [var ...]
Run 'go help env' for details.

All variables

$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/mcurrin/Library/Caches/go-build"
...

Show variable

$ go env GOPATH
/Users/mcurrin/go