gin框架安装,及安装失败处理


git地址:https://github.com/skyhee/gin-doc-cn

执行后提示:

Cloning into 'D:\GO\src\github.com\gin-gonic\gin'...
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
package github.com/gin-gonic/gin: exit status 128

处理:

针对系统:mac/linux

# 设置goproxy.io

代理 export GOPROXY=https://goproxy.io

# 设置GO111MOUDLE export GO111MODULE=on

win:go env -w GO111MODULE="on"


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM