Documentation ¶
Index ¶
- Variables
- func HtmlNodeToString(n *html.Node) string
- func NodeTypeToString(nodeType html.NodeType) string
- type AndPredicate
- type HasAttributeKeyAllValuesPredicate
- type HasAttributeKeyAnyValuesPredicate
- type HasAttributeKeyExactValuePredicate
- type HasAttributeKeyValueRegexpPredicate
- type HasAttributePredicate
- type HasAttributeRegexpPredicate
- type HasChildWithPredicate
- type HasDescendantWithPredicate
- type HasSiblingWithPredicate
- type IsNodeTypePredicate
- type OrPredicate
- type Predicate
- type TagPredicate
- type TagRegexpPredicate
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Functions ¶
func HtmlNodeToString ¶
func NodeTypeToString ¶
Types ¶
type AndPredicate ¶
type AndPredicate struct {
Predicates []Predicate
}
func And ¶
func And(predicates ...Predicate) *AndPredicate
func (*AndPredicate) String ¶
func (ap *AndPredicate) String() string
type HasAttributeKeyAllValuesPredicate ¶
func (*HasAttributeKeyAllValuesPredicate) Match ¶
func (hakavp *HasAttributeKeyAllValuesPredicate) Match(n *html.Node) bool
func (*HasAttributeKeyAllValuesPredicate) String ¶
func (hakavp *HasAttributeKeyAllValuesPredicate) String() string
type HasAttributeKeyAnyValuesPredicate ¶
func (*HasAttributeKeyAnyValuesPredicate) Match ¶
func (hakavp *HasAttributeKeyAnyValuesPredicate) Match(n *html.Node) bool
func (*HasAttributeKeyAnyValuesPredicate) String ¶
func (hakavp *HasAttributeKeyAnyValuesPredicate) String() string
type HasAttributeKeyExactValuePredicate ¶
func (*HasAttributeKeyExactValuePredicate) Match ¶
func (hakvp *HasAttributeKeyExactValuePredicate) Match(n *html.Node) bool
func (*HasAttributeKeyExactValuePredicate) String ¶
func (hakvp *HasAttributeKeyExactValuePredicate) String() string
type HasAttributeKeyValueRegexpPredicate ¶
type HasAttributeKeyValueRegexpPredicate struct { KeyRegexp *regexp.Regexp ValueRegexp *regexp.Regexp }
func (*HasAttributeKeyValueRegexpPredicate) Match ¶
func (hakvrp *HasAttributeKeyValueRegexpPredicate) Match(n *html.Node) bool
func (*HasAttributeKeyValueRegexpPredicate) String ¶
func (hakvrp *HasAttributeKeyValueRegexpPredicate) String() string
type HasAttributePredicate ¶
type HasAttributePredicate struct {
Key string
}
func (*HasAttributePredicate) String ¶
func (hap *HasAttributePredicate) String() string
type HasAttributeRegexpPredicate ¶
func (*HasAttributeRegexpPredicate) Match ¶
func (harp *HasAttributeRegexpPredicate) Match(n *html.Node) bool
func (*HasAttributeRegexpPredicate) String ¶
func (harp *HasAttributeRegexpPredicate) String() string
type HasChildWithPredicate ¶
type HasChildWithPredicate struct {
ChildPredicate Predicate
}
func ChildWith ¶
func ChildWith(p Predicate) *HasChildWithPredicate
type HasDescendantWithPredicate ¶
type HasDescendantWithPredicate struct {
DescendantPredicate Predicate
}
func DescendantWith ¶
func DescendantWith(p Predicate) *HasDescendantWithPredicate
type HasSiblingWithPredicate ¶
type HasSiblingWithPredicate struct {
SiblingPredicate Predicate
}
func SiblingWith ¶
func SiblingWith(p Predicate) *HasSiblingWithPredicate
type IsNodeTypePredicate ¶
type OrPredicate ¶
type OrPredicate struct {
Predicates []Predicate
}
func Or ¶
func Or(predicates ...Predicate) *OrPredicate
func (*OrPredicate) String ¶
func (op *OrPredicate) String() string
type Predicate ¶
type TagPredicate ¶
type TagPredicate struct {
Tag string
}
func Tag ¶
func Tag(tag string) *TagPredicate
func (*TagPredicate) String ¶
func (tp *TagPredicate) String() string
type TagRegexpPredicate ¶
func TagRegexp ¶
func TagRegexp(tagRegexp *regexp.Regexp) *TagRegexpPredicate
func (*TagRegexpPredicate) String ¶
func (trp *TagRegexpPredicate) String() string
Click to show internal directories.
Click to hide internal directories.