Golang常见问题汇总

  在开始使用golang的时候,经常会遇到各种问题,总结在此

1.

unrecognized import path "golang.org/x/..

golang 在 github 上建立了一个镜像库,下载github上的镜像库放入GOPATH下即可

mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/sync.git
git clone https://github.com/golang/crypto.git
git clone https://github.com/golang/sys.git
原文地址:https://www.cnblogs.com/xingxia/p/go_problems.html