Documentation
¶
Index ¶
- Variables
- func Attribute(node *html.Node, key string) (value string)
- func BFS(rootNode *html.Node, match MatchFunc) (node *html.Node)
- func DirectChild(parent *html.Node, matchFunc MatchFunc) (child *html.Node)
- func DirectChildren(parent *html.Node, matchFunc MatchFunc) (children []*html.Node)
- func Fetch(ctx context.Context, client *http.Client, url string) (rootNode *html.Node, err error)
- func HasClassStrings(node *html.Node, classStrings ...string) (match bool)
- func WrapError(sentinelError error, node *html.Node) error
- func WrapWarning(warning string, node *html.Node) string
- type MatchFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHTTPStatusCodeNotOK = errors.New("HTTP status code is not OK")
Functions ¶
func DirectChildren ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.