#命令
go env
#默认配置如下
GO111MODULE=”” #是否开启go mod 模式 值有on ,off,auto
GOARCH=”amd64″
GOBIN=””
GOCACHE=”/root/.cache/go-build”
GOENV=”/root/.config/go/env” #env配置文件,修改默认配置会生成
GOEXE=””
GOFLAGS=””
GOHOSTARCH=”amd64″
GOHOSTOS=”linux”
GOINSECURE=””
GOMODCACHE=”/root/go/pkg/mod”
GONOPROXY=””
GONOSUMDB=””
GOOS=”linux”
GOPATH=”/root/go”
GOPRIVATE=””
GOPROXY=”#34; #这这里默认修改的代理
GOROOT=”/usr/local/go”
GOSUMDB=”sum.golang.org”
GOTMPDIR=””
GOTOOLDIR=”/usr/local/go/pkg/tool/linux_amd64″
GOVCS=””
GOVERSION=”go1.16.6″
GCCGO=”gccgo”
AR=”ar”
CC=”gcc”
CXX=”g++”
CGO_ENABLED=”1″
GOMOD=”/dev/null”
CGO_CFLAGS=”-g -O2″
CGO_CPPFLAGS=””
CGO_CXXFLAGS=”-g -O2″
CGO_FFLAGS=”-g -O2″
CGO_LDFLAGS=”-g -O2″
PKG_CONFIG=”pkg-config”
GOGCCFLAGS=”-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2675775440=/tmp/go-build -gno-record-gcc-switches”