标签:解决方案 Golan 问题 错误 tools 手动 party host cti
在使用go get
安装gopls时发现连接超时,错误如下:
go get golang.org/x/tools/gopls
package golang.org/x/sync/errgroup: unrecognized import path "golang.org/x/sync/errgroup" (https fetch: Get https://golang.org/x/sync/errgroup?go-get=1: dial tcp 216.239.37.1:443: connectex: 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.)
由于golang.org/x
在github/golang
下有镜像文件,故手动在$GOPATH/src
目录创建golang.org/x
子目录,并进入目录中,clone
github/golang下的仓库。
git clone https://github.com/golang/gopls
标签:解决方案 Golan 问题 错误 tools 手动 party host cti
原文地址:https://www.cnblogs.com/luoheng23/p/11172194.html