go get gopkg.in/yaml.v2超时,发现被墙了,解决办法如下:
1、安装golang.org/x/net
$ mkdir -p $GOPATH/src/golang.org/x/
$ git clone https://github.com/golang/net.git $GOPATH/src/golang.org/x/net
$ go install net
2、安装gopkg.in/yaml.v2
$ go get gopkg.in/yaml.v2
go get gopkg.in/yaml.v2超时,发现被墙了,解决办法如下:
1、安装golang.org/x/net
$ mkdir -p $GOPATH/src/golang.org/x/
$ git clone https://github.com/golang/net.git $GOPATH/src/golang.org/x/net
$ go install net
2、安装gopkg.in/yaml.v2
$ go get gopkg.in/yaml.v2
转载于:https://www.cnblogs.com/wayne666/p/10615490.html