go相關官方地址被牆真的很讓人暴躁:
go版本:go version go1.13.6 windows/amd64
安裝gin框架時使用了:go get github.com/kardianos/govendor
然後:
go get github.com/kardianos/govendor: module github.com/kardianos/govendor: Get https://proxy.golang.org/github.com/kardianos/govendor/@v/list: dial tcp 172.217.160.113: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
重新執行命令,通過!