Uninstalling Go for an upgrade
I installed go1.15.5 on windows/amd64.
To be sure, when I run go run main.go
, the build does not complete.
I waited 40 minutes and it’s not done.
Is there a cause or has the specification changed?
How to finish go ru main.go faster?
hi lutzhorn
Sorry for the lack of information …
What exactly is main.go? Is it small or large? A. Yes it is small 795 bytes
Do you use any modules or libraries? Which? A. Yes yes is the next library
A. YesI uninstalled and re-installed it firmly because there might be a mistake somewhere.
A. This is how it went out
Microsoft Windows [Version 10.0.18363.1198]
(c) 2019 Microsoft Corporation. All rights reserved.
>go version
go version go1.15.5 windows/amd64
A. It worked beautifully!And this is the output
>go run hello.go
Hello, Gophers!
A. Nothing came up! The error didn’t even happen!
>go run example.go
A. Go env has successfully output the following(*User eyes for privacy protection)
set GO111MODULE=
set GOARCH=amd64
set GOBIN=GOPATH/bin
set GOCACHE=C:\Users\UsersName\AppData\Local\go-build
set GOENV=C:\Users\UsersName\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\UsersName\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\UsersName\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\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 -fmessage-length=0 -fdebug-prefix-map=C:\Users\UsersName\AppData\Local\Temp\go-build210965470=/tmp/go-build -gno-record-gcc-switches