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
{{ message }}
This repository has been archived by the owner on May 9, 2021. It is now read-only.
Commands and errors(I wanna install lint to global environment):
[root@localhost ~]# go get github.com/golang/lint
/usr/share/gocode/src/github.com/golang/lint/lint.go:1496:16: 错误:reference to undefined field or method ‘Type’
if b, ok := tv.Type.(*types.Basic); ok {
^
/usr/share/gocode/src/github.com/golang/lint/lint.go:1492:19: 错误:function result count mismatch
tv, err := types.Eval(f.fset, f.pkg.typesPkg, expr.Pos(), exprStr)
OS:Fedora 23 VMwrea 12 pro
Go version :go1.4.2 gccgo (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) linux/amd64
My golang envs:
GOARCH="amd64"
GOBIN="/usr/lib/golang/bin"
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/share/gocode"
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/libexec/gcc/x86_64-redhat-linux/5.1.1"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"
What can I do to solve this issue?
The text was updated successfully, but these errors were encountered:
Commands and errors(I wanna install lint to global environment):
[root@localhost ~]# go get github.com/golang/lint
/usr/share/gocode/src/github.com/golang/lint/lint.go:1496:16: 错误:reference to undefined field or method ‘Type’
if b, ok := tv.Type.(*types.Basic); ok {
^
/usr/share/gocode/src/github.com/golang/lint/lint.go:1492:19: 错误:function result count mismatch
tv, err := types.Eval(f.fset, f.pkg.typesPkg, expr.Pos(), exprStr)
OS:Fedora 23 VMwrea 12 pro
Go version :go1.4.2 gccgo (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) linux/amd64
My golang envs:
GOARCH="amd64"
GOBIN="/usr/lib/golang/bin"
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/share/gocode"
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/libexec/gcc/x86_64-redhat-linux/5.1.1"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"
What can I do to solve this issue?
The text was updated successfully, but these errors were encountered: