vscode 没法安装golang.org安装包的问题

1、问题 今天在安装vscode时,报错php

github.com/ramya-rao-a/go-outline (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: connect: connection refused

golang.org在国内被墙了,根本没法下载golang.org的安装包和源码包,以及类库。 2、解决方式 在github中找到解决方法,git

mkdir -p $GOPATH/src/golang.org/x/  
cd $GOPATH/src/golang.org/x/
git clone https://github.com/golang/tools.git

而后能够安装了github

go get -v -u github.com/ramya-rao-a/go-outline

欢迎扫描下方二维码,持续关注:

互联网工程师(id:phpstcn),咱们一块儿学习,一块儿进步golang

相关文章
相关标签/搜索