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