Documentation ¶ Index ¶ func Extract(url string) ([]string, error) func ForEachNode(n *html.Node, pre, post func(n *html.Node)) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Extract ¶ func Extract(url string) ([]string, error) Extract performs a HTTP GET request for an URL,parses the response as HTML and extracts and returns the links in the HTML doc func ForEachNode ¶ func ForEachNode(n *html.Node, pre, post func(n *html.Node)) ForEachNode calls the functions pre(x) and post(x) for each node x in the tree rooted at n. Both functions are optional. pre is called before the children are visited (preorder) and post is called after (postorder). Types ¶ This section is empty. Source Files ¶ View all Source files links.go Click to show internal directories. Click to hide internal directories.