windows环境下beego的部署


表现:
github.com/gadelkareem/delve/service/rpccommon
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”.Entry) as type *“github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus”.Entry in field value
github.com/gadelkareem/delve/service/debugger
src\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

原因:
由于是国内环境,所以需要更改golang的配置

操作:

在gopath下面

E:\goproj\src\>

E:\goproj\src\>set GO111MODULE=on
E:\goproj\src\>set GOPROXY=https://goproxy.io

E:\goproj\src\>go get github.com/astaxie/beego
E:\goproj\src\>go get -u github.com/beego/bee

致谢:
https://www.codenong.com/cs107084192/
 

你可能感兴趣的:(go)