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"

posted @ 2021-06-21 16:21  雪糕战士  阅读(731)  评论(0编辑  收藏  举报