go get: module github.com/gin-gonic/gin 报错: A connection attempt failed

报错:

go get: module github.com/gin-gonic/gin: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/list": 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.

原因:

解决方法:

设置国内代理

go env -w GOPROXY=https://goproxy.cn


版权声明:本文为qq3434569原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。