产看go的环境
go env
C:\Users\think>go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\think\AppData\Local\go-build
set GOENV=C:\Users\think\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\GoProject\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
# GOPATH的路径
set GOPATH=C:\GoProject
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
# GOROOT的路径
set GOROOT=D:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\think\AppData\Local\Temp\go-build877960734=/tmp/go-build -gno-record-gcc-switches
C:\Users\think>
|
请发表评论