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.
更改国内代理即可
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOPRIVATE=*.corp.example.com
本文介绍在Golang编程中如何成功引用并使用自己上传到GitHub上的包。当使用gomod方式下载这些包遇到连接超时问题时,可以通过设置国内代理解决。具体操作包括修改环境变量 GOPROXY 和 GOPRIVATE。
2710

被折叠的 条评论
为什么被折叠?



