在Go中安装exp / html [英] Install exp/html in Go
问题描述
encoding / xml
提供了XML抓取。那么如何在Go中安装 exp / html
包? 据我所知,所有的答案,至少我在网上偶然发现了10分钟的搜索,并没有返回正确的答案;当我尝试运行这些文件时,出现错误无法在YYY中找到软件包XXX
或 no XXX中的源文件
。
到目前为止,我可以在没有重新编译和设置整个Go环境的情况下安装它吗?或者我错过了什么?
我在OS X 10.8上运行Go version 1.1,我从OS X软件包安装程序安装。 b
有关您的信息,这些代码没有成功。
go get code.google。 com / p / go / src / pkg / exp / html
去获取code.google.com/p/go.exp/inotify
谢谢。
go获取code.google.com/p/go.net/html
,它似乎有效。
我有一种感觉,它已经从 exp
library添加到新的 net
库。
It looks like Go doesn't support HTML web parsing tools/packages yet, despite it already providing XML scraping via encoding/xml
. So how can I install exp/html
package in Go?
As far as I know, all the answers, at least I stumbled upon on the Web with 10 minutes worth of searching, didn't return the correct answer; when I tried to run those, I got the error cannot find package XXX in YYY
or no Go source files in XXX
.
So as of now, can I install it without re-compling and setting the whole Go environment from scratch? Or am I missing something?
I'm on OS X 10.8 and run Go version 1.1, which I installed from OS X package installer.
For your information, these code didn't make it.
go get code.google.com/p/go/src/pkg/exp/html
go get code.google.com/p/go.exp/inotify
Thanks.
I just tried:
go get code.google.com/p/go.net/html
and it seemed to work.
I have a feeling it's been moved from the exp
library to the new net
library.
EDIT: Documentation & browseable repo.
这篇关于在Go中安装exp / html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!