安装beego框架时使用了:go get github.com/beego/beego/v2@v2.0.0
然后:
go get: github.com/beego/beego/v2@v2.0.0: Get "https://proxy.golang.org/github.com/beego/beego/v2/@v/v2.0.0.info": dial tcp 172.217.160.81: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.
看提示就是连接不上了,关掉VPN,直接访问地址,得了还是被墙了
网上找了个能用的代理地址:https://goproxy.cn
执行命令:
go env -w GOPROXY=https://goproxy.cn
重新执行命令,通过!