Versions in this module Expand all Collapse all v0 v0.1.1 May 19, 2022 Changes in this version + var Debug = false + func HtmlNodeToString(n *html.Node) string + func NodeTypeToString(nodeType html.NodeType) string + type AndPredicate struct + Predicates []Predicate + func And(predicates ...Predicate) *AndPredicate + func (ap *AndPredicate) Match(n *html.Node) bool + func (ap *AndPredicate) Search(ctx context.Context, n *html.Node) []*html.Node + func (ap *AndPredicate) String() string + type HasAttributeKeyAllValuesPredicate struct + Key string + Values []string + func (hakavp *HasAttributeKeyAllValuesPredicate) Match(n *html.Node) bool + func (hakavp *HasAttributeKeyAllValuesPredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (hakavp *HasAttributeKeyAllValuesPredicate) String() string + type HasAttributeKeyAnyValuesPredicate struct + Key string + Values []string + func (hakavp *HasAttributeKeyAnyValuesPredicate) Match(n *html.Node) bool + func (hakavp *HasAttributeKeyAnyValuesPredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (hakavp *HasAttributeKeyAnyValuesPredicate) String() string + type HasAttributeKeyExactValuePredicate struct + Key string + Value string + func (hakvp *HasAttributeKeyExactValuePredicate) Match(n *html.Node) bool + func (hakvp *HasAttributeKeyExactValuePredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (hakvp *HasAttributeKeyExactValuePredicate) String() string + type HasAttributeKeyValueRegexpPredicate struct + KeyRegexp *regexp.Regexp + ValueRegexp *regexp.Regexp + func (hakvrp *HasAttributeKeyValueRegexpPredicate) Match(n *html.Node) bool + func (hakvrp *HasAttributeKeyValueRegexpPredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (hakvrp *HasAttributeKeyValueRegexpPredicate) String() string + type HasAttributePredicate struct + Key string + func (hap *HasAttributePredicate) Match(n *html.Node) bool + func (hap *HasAttributePredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (hap *HasAttributePredicate) String() string + type HasAttributeRegexpPredicate struct + KeyRegexp *regexp.Regexp + func (harp *HasAttributeRegexpPredicate) Match(n *html.Node) bool + func (harp *HasAttributeRegexpPredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (harp *HasAttributeRegexpPredicate) String() string + type HasChildWithPredicate struct + ChildPredicate Predicate + func ChildWith(p Predicate) *HasChildWithPredicate + func (hcwp *HasChildWithPredicate) Match(n *html.Node) bool + func (hcwp *HasChildWithPredicate) Search(ctx context.Context, n *html.Node) []*html.Node + type HasDescendantWithPredicate struct + DescendantPredicate Predicate + func DescendantWith(p Predicate) *HasDescendantWithPredicate + func (hdwp *HasDescendantWithPredicate) Match(n *html.Node) bool + func (hdwp *HasDescendantWithPredicate) Search(ctx context.Context, n *html.Node) []*html.Node + type HasSiblingWithPredicate struct + SiblingPredicate Predicate + func SiblingWith(p Predicate) *HasSiblingWithPredicate + func (hswp *HasSiblingWithPredicate) Match(n *html.Node) bool + func (hswp *HasSiblingWithPredicate) Search(ctx context.Context, n *html.Node) []*html.Node + type IsNodeTypePredicate struct + NodeType html.NodeType + func (isntp *IsNodeTypePredicate) Match(n *html.Node) bool + func (isntp *IsNodeTypePredicate) Search(_ context.Context, n *html.Node) []*html.Node + type OrPredicate struct + Predicates []Predicate + func Or(predicates ...Predicate) *OrPredicate + func (op *OrPredicate) Match(n *html.Node) bool + func (op *OrPredicate) Search(ctx context.Context, n *html.Node) []*html.Node + func (op *OrPredicate) String() string + type Predicate interface + Match func(n *html.Node) bool + Search func(ctx context.Context, n *html.Node) []*html.Node + func Attribute(args ...interface{}) Predicate + type TagPredicate struct + Tag string + func Tag(tag string) *TagPredicate + func (tp *TagPredicate) Match(n *html.Node) bool + func (tp *TagPredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (tp *TagPredicate) String() string + type TagRegexpPredicate struct + TagRegexp *regexp.Regexp + func TagRegexp(tagRegexp *regexp.Regexp) *TagRegexpPredicate + func (trp *TagRegexpPredicate) Match(n *html.Node) bool + func (trp *TagRegexpPredicate) Search(_ context.Context, n *html.Node) []*html.Node + func (trp *TagRegexpPredicate) String() string