解决 go get github.com/gin-gonic/gin

exit status 128:
fatal: unable to access 'https://github.com/gin-gonic/gin/': OpenSSL SSL_read: Connection was reset, errno 10054
下载不下来
设置2个地方:
go env -w GO111MODULE=off
GOPROXY=https://mirrors.aliyun.com/goproxy/,direct

查看env
再 go get github.com/gin-gonic/gin

可以了
本文介绍了解决在使用Go语言环境下无法获取到gin-gonic/gin框架的问题。通过配置环境变量GO111MODULE为off及设置GOPROXY为阿里云Go代理镜像站点的方法,成功解决了因网络连接问题导致的获取失败。

被折叠的 条评论
为什么被折叠?



