go get golang.org/x 包失败解决方法

windows

 

 mkdir -p %GOPATH%\src\golang.org\x

 

获取 golang.org/x/net 包,其实只需要以下步骤:

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

其它 golang.org/x 下的包获取皆可使用该方法

 

posted @ 2017-11-24 16:43  飞晨信息  阅读(589)  评论(0)    收藏  举报