You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
Yes, I am using the latest version.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Aaron\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Aaron\code\go-projects-win;C:\Go;
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\Aaron\code\my-blog\go.mod
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\Aaron\AppData\Local\Temp\go-build355843062=/tmp/go-build -gno-record-gcc-switches
What did you do?
I am using Windows and PowerShell.
I created a project at C:\Users\Aaron\code\my-blog\, then:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, I am using the latest version.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created a project at
C:\Users\Aaron\code\my-blog\
, then:Here are my files:
main.go
(Copied fromgin
):go.mod
:go.sum
:Then when I execute this command in my project folder (Actually this is from
VSCode' s Go extension
):But simple
go build .
gets the same output.What did you expect to see?
It shouldn't emit any error message (I think).
I searched the internet, GitHub, and read this article, but I still can't find answer for my situation (maybe it's a silly mistake made by myself).
At first, I get this error on
Windows WSL
, so I reinstall Golang on Windows, but still can't get it working. Am I using this wrong?What did you see instead?
I get this:
But when I remove the
github.com/gin-gonic/gin
import statement (and code), only keep built-in packages, it works fine.The text was updated successfully, but these errors were encountered: