go工具目录
$GOROOT/pkg/tool/<平台相关目录>
内容:
addr2line asm buildid cgo compile cover dist doc fix link nm objdump pack pprof test2json tour trace vet
GO相关的环境变量
go env
内容:
GOARCH="amd64"
GOBIN="/bin"
GOCACHE="/Users/mark/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/mark/code/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/gy/twzrxfc10_jg__2q5tn_y7sr0000gn/T/go-build471509197=/tmp/go-build -gno-record-gcc-switches -fno-common"
网友评论