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
05-23 06:15