centos beego cannot use logger

 

错误提示信息:

# github.com/gadelkareem/delve/service/debugger

../github.com/gadelkareem/delve/service/debugger/debugger.go:129:3: cannot use logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type *"github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value
github.com/gadelkareem/delve/service/rpccommon
../github.com/gadelkareem/delve/service/rpccommon/server.go:83:3: cannot use logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type *"github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value

这是由于没有配置GO111MODULE的设置(及GOPROXY)

 

go env -w GOPROXY=https://goproxy.io,direct
go env -w GO111MODULE=on

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-01-05
  • 2022-12-23
  • 2021-12-05
  • 2021-12-11
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2022-02-22
  • 2021-05-29
  • 2021-09-26
  • 2022-12-23
  • 2021-06-17
  • 2021-08-31
相关资源
相似解决方案