github.com/lib/pq: module github.com/lib/pq: Get "https://proxy.golang.org/github.com/lib/pq/@v/list": dial tcp 216.58.200.241:443: i/o timeout
由于升级go versions 为go1.16.2
go mod安装以来超时,需要设置代理地址
设置代理方式:
export GO111MODULE=on
export GOPROXY=https://goproxy.io或者export GOPROXY=https://goproxy.cn
go env -w GOPROXY=https://goproxy.cn,direct
原文:https://www.cnblogs.com/smallyi/p/14698057.html