下载命令:go get -u github.com/gin-gonic/gin
执行命令报错如图
go: module github.com/gin-gonic/gin: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@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.
解决方法:
设置国内代理
go env -w GOPROXY=https://goproxy.cn
下载成功~~