【发布时间】:2012-04-16 16:44:46
【问题描述】:
我已经以 root 身份安装了 Go 发行版。 Go1 删除了所有 exp/ 代码。
有没有聪明的方法在 Go1 之后取回 exp/* ? (我的意思是如何安装在我本地的 GOPATH 中?)
[我的解决方案]
# pull from go repository to $HOME/repo/go
cd $HOME/repo
hg clone https://go.googlecode.com/hg/go
# make symbolic link to your GOPATH(eg. $HOME/go)
cd $HOME/go/src
ln -s $HOME/repo/go/src/pkg/exp .
【问题讨论】:
-
注意:go 1.4 (Q4 2014) 将再次更改 url:见my answer below。
标签: go