Documentation ¶
Index ¶
- func CountElements(countEl map[string]int, n *html.Node) map[string]int
- func CountWordsAndImages(n *html.Node) (words, images int)
- func EndElement(n *html.Node)
- func Fetch(url string) (filename string, n int64, err error)
- func ForEachNode(doc *html.Node, pre, post func(doc *html.Node))
- func GetURL(url string) (doc *html.Node, err error)
- func StartElement(n *html.Node)
- func TextFromHTML(res []string, n *html.Node) []string
- func Visit(links []string, n *html.Node) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountElements ¶
CountElements count elements
func CountWordsAndImages ¶
CountWordsAndImages count words and images
func ForEachNode ¶
ForEachNode call function pre(x) and post(x) for every x in the tree with root n. Both functions are optional
func TextFromHTML ¶
TextFromHTML get text from html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.