1、例如安装redis
go get github.com/garyburd/redigo/redis
2、报错提示:
# cd .; git clone -- https://github.com/garyburd/redigo C:\Users\yhj\go\src\github.com\garyburd\redigo
Cloning into 'C:\Users\yhj\go\src\github.com\garyburd\redigo'...
fatal: unable to access 'https://github.com/garyburd/redigo/': OpenSSL SSL_read: Connection was reset, errno 10054
package github.com/garyburd/redigo/redis: exit status 128
3、git https 无法获取,请配置本地的 git,关闭 https 验证:
#执行
git config --global http.sslVerify false
4、再去安装模块
go get github.com/garyburd/redigo/redis
5、这时就可以安装成功