执行go get github.com/astaxie/beego时,出现的错误大致如下:
go get: module github.com/astaxie/beego: Get "https://proxy.golang.org/github.com/astaxie/beego/@v/list": dial tcp 172.217.163.49:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
出现如上现象大致就是网络问题,无法访问,解决方法如下:
运行cmd,执行如下代码:
go env -w GOPROXY=https://goproxy.cn,direct
再次执行go get github.com/astaxie/beego就可以了
版权声明:本文为weixin_43118090原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。