User Tools

Site Tools


go_env

This is an old revision of the document!


Overview

Standard Go environment, and some details.

go env

$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/rpjday/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/rpjday/go"
GORACE=""
GOROOT="/usr/lib/golang"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build110643148=/tmp/go-build -gno-record-gcc-switches"
$
go_env.1523376156.txt.gz · Last modified: 2018/04/10 16:02 by rpjday