How to list your GO setup details?

Home Forums Go Programming How to list your GO setup details?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5465 Reply
    Humble
    Keymaster

    Go command option env provide most of the details you want to work with the go installation in your system.


    [humblec@localhost ~]$ go env
    GO111MODULE=""
    GOARCH="amd64"
    GOBIN=""
    GOCACHE="/home/humblec/.cache/go-build"
    GOENV="/home/humblec/.config/go/env"
    GOEXE=""
    GOFLAGS=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOINSECURE=""
    GONOPROXY=""
    GONOSUMDB=""
    GOOS="linux"
    GOPATH="/home/humblec/gopath"
    GOPRIVATE=""
    GOPROXY="https://proxy.golang.org,direct"
    GOROOT="/usr/local/go"
    GOSUMDB="sum.golang.org"
    GOTMPDIR=""
    GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
    GCCGO="gccgo"
    AR="ar"
    CC="gcc"
    CXX="g++"
    CGO_ENABLED="1"
    GOMOD=""
    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-build011542733=/tmp/go-build -gno-record-gcc-switches"
    [humblec@localhost ~]$ go version
    go version go1.14.2 linux/amd64
    [humblec@localhost ~]$

Viewing 1 post (of 1 total)
Reply To: How to list your GO setup details?
Your information: