我是靠谱客的博主 强健魔镜,这篇文章主要介绍golang中引用自己github公开的包失败:connected host has failed to respond,现在分享给大家,希望可以做个参考。
golang编程中,想使用自己上传到github的包
使用go mod方式,下载引用自己上传的包失败:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
更改国内代理即可
复制代码
1
2go env -w GOPROXY=https://goproxy.cn,direct go env -w GOPRIVATE=*.corp.example.com
最后
以上就是强健魔镜最近收集整理的关于golang中引用自己github公开的包失败:connected host has failed to respond的全部内容,更多相关golang中引用自己github公开的包失败:connected内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复