go get github.com/gin-gonic/gin connection refused

go get github.com/gin-gonic/gin 下载失败

 

 有人的错误是如下:

 

 原因是:go get太慢,增加代理,添加 https://goproxy.io/zh/

1. go env -w GO111MODULE=on

 

 2.go env -w GOPROXY=https://goproxy.io,direct

 

 3. 安装 gin 包  go get  github.com/gin-gonic/gin

posted @ 2022-02-16 23:26  aaron_agu  阅读(233)  评论(0编辑  收藏  举报