您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
三六零分类信息网 > 运城分类信息网,免费分类信息发布

VSCode Go扩展安装失败

2026/2/6 15:03:30发布5次查看
vscode go扩展安装失败
vscode go扩展安装失败,其原因安装插件需要依赖于国外网站“https://golang.org/x/tools”,而国内无法访问,所以导致安装失败,解决方法:使用go官方在github上建立的镜像库,将插架下载到本地进行安装即可。
克隆方法
// 进入vs code设置的gopath的src目录 cd /d d:\goprojects\src // 创建golang.org目录,如果已经存在忽略该指令 mkdir golang.org // 进入golang.org目录 cd golang.org // 创建x目录,如果已经存在忽略该指令 mkdir x // 进入x目录 cd x // 获取tools源码 git clone https://github.com/golang/tools // 获取lint源码 git clone https://github.com/golang/lint
安装插件
installing github.com/mdempsky/gocode succeededinstalling github.com/ramya-rao-a/go-outline succeededinstalling github.com/acroca/go-symbols succeededinstalling golang.org/x/tools/cmd/guru succeededinstalling golang.org/x/tools/cmd/gorename succeededinstalling github.com/stamblerre/gocode succeededinstalling github.com/sqs/goreturns succeededinstalling golang.org/x/lint/golint succeeded all tools successfully installed. you're ready to go :).
推荐教程:《go教程》
以上就是vscode go扩展安装失败的详细内容。
运城分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product