1.下载全部依赖包:

CMD项目目录下运行下面指令可以自动获取依赖包

go get -d -v ./...

2.设置代理:

配置代理地址:https://goproxy.io,在idea中可以直接配置go moudle的代理地址为这个url;

3.手动下载依赖包:

#gopath#/src/golang.org/x


git clone https://github.com/golang/sys.git

git clone https://github.com/golang/net.git

git clone https://github.com/golang/text.git

t git clone https://github.com/golang/lint.git

git clone https://github.com/golang/tools.git

git clone https://github.com/golang/crypto.git