go: github.com/cosiner/argv@v0.0.0-20170225145430-13bacc38a0a5: Get "https://proxy.golang.org/github.com/cosiner/argv/@v/v0.0.0-20170225145430-13bacc38a0a5.mod": dial tcp 216.58.220.209: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.
在github下载delve后,cmd中输入go build就出现以上错误,
解决办法是找一个代理地址https://goproxy.cn,输入
go env -w GOPROXY=https://goproxy.cn
手动修改go.mod
文件
# 添加下面替换:
replace (
golang.org/x/arch v0.0.0-20171004143515-077ac972c2e4 => github.com/golang/arch v0.0.0-20171004143515-077ac972c2e4
golang.org/x/crypto v0.0.0-20180614174826-fd5f17ee7299 => github.com/golang/crypto v0.0.0-20180614174826-fd5f17ee7299
golang.org/x/sys v0.0.0-20180614134839-8883426083c0 => github.com/golang/sys v0.0.0-20180614134839-8883426083c0
)