validator icon indicating copy to clipboard operation
validator copied to clipboard

`go get gin` error. It context.go file has to many error?

Open Kabochar opened this issue 7 years ago • 0 comments

situation: first install gin. when go get github.com/gin-gonic/gin done, it comes out

# github.com/gin-gonic/gin
gin-gonic\gin\context.go:35:26: undefined: binding.MIMEYAML
gin-gonic\gin\context.go:583:29: undefined: binding.YAML
gin-gonic\gin\context.go:637:31: undefined: binding.YAML
gin-gonic\gin\context.go:646:9: undefined: binding.Uri
gin-gonic\gin\context.go:660:58: undefined: binding.BindingBody
gin-gonic\gin\context.go:845:17: undefined: render.JsonpJSON
gin-gonic\gin\context.go:857:17: undefined: render.AsciiJSON
gin-gonic\gin\context.go:863:17: undefined: render.PureJSON
gin-gonic\gin\context.go:879:17: undefined: render.ProtoBuf
gin-gonic\gin\context.go:906:17: undefined: render.Reader
gin-gonic\gin\context.go:906:17: too many errors

How to solve it? Anybody know?

envirment: Go version: 1.12.6

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ASUS\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\CodeSpace\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=
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\ASUS\AppData\Local\Temp\go-build340568606=/tmp/go-build -gno-record-gcc-switches

Kabochar avatar Jun 21 '19 08:06 Kabochar