links

package
v0.0.0-...-a8a07f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL