I have been using Go for a month now and am trying to install go on a laptop and am having trouble understanding why Go is installed in two places on my main computer.
"c:\Program Files\Go" (the default during install was c:\Go)
"%USERPROFILE%\go"
Both installs have the usual bin/src/pkg structure and the "%USERPROFILE%\go" has an extra folder named "go1.13rc2" and appears to be a 3rd full install of go...
Can anyone tell me which folder is correct and why there are two installs?
I have been deploying to google cloud using gcloud command line if that helps.
My "go env"
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\don\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\don\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Program Files\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
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\don\AppData\Local\Temp\go-build190828578=/tmp/go-build -gno-record-gcc-switches