社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
go: golang.org/x/sys@v0.0.0-20180905080454-ebe1bf3edb33: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: c onnectex: 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: error loading module requirements
原因是某些依赖在国内被墙了,这边可以设置一下proxy,就可以解决:
进入Goland的设置界面,File/Settings/Go/Go Module(vgo),设置一下Proxy为:https://goproxy.io。
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!