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