C:\Users\Administrator>go get github.com/beego/bee
# github.com/gadelkareem/delve/service/debugger
go\src\github.com\gadelkareem\delve\service\debugger\debugger.go:129:3: cannot u
se logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".E
ntry) as type *"github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".
Entry in field value
# github.com/gadelkareem/delve/service/rpccommon
go\src\github.com\gadelkareem\delve\service\rpccommon\server.go:83:3: cannot use
logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Ent
ry) as type *"github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".En
try in field value
C:\Users\Administrator>go version
go version go1.14.4 windows/amd64
有知道的如何解决的么,谢谢!
答案已经找到:
由于是国内环境,所以需要更改golang的配置
由于我是windows环境,所以mac的方法未测试
解决方法如下:
mac设置(未测试)
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.io
windows设置(本人修改后成功拉取,后面不能有空格,不然会出错)
set GO111MODULE=on
set GOPROXY=https://goproxy.io
————————————————
版权声明:本文为CSDN博主「谁还不是块奥利奥呢」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_41119959/article/details/107084192
出处:https://blog.csdn.net/qq_41119959/article/details/107084192
#1