dortmundbvb0624 2012-04-03 02:27
浏览 43
已采纳

有什么聪明的方法可以在Go1之后取回exp / html?

I've installed the Go release version as root. Go1 removed all exp/ code.

Is there smart method to get exp/* back after Go1? (I mean how to install in my local GOPATH?)

[My Solution]

# 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 .
  • 写回答

5条回答 默认 最新

  • douou0977 2014-11-06 06:58
    关注

    Note: with go 1.4 (Q4, 2014), the url for that exp package will change (again):

    code.google.com/p/go.exp => golang.org/x/exp
    

    That means now:

    go get golang.org/x/exp
    

    See "Go 1.4 subrepo renaming".

    Regarding the html package, it is in net/html, so this will become (as commented by andybalholm):

    go get golang.org/x/net/html
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.