Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter corresponding to the type of search that you want to do is important to know that all this filters can be reuse in any time
type MatchFunc ¶
MatchFunc is the signature of a matcher entering a node and returning true if this node match the proper pattern
type Matcher ¶
Matcher is the proper matcher interface if you want to create a custom matcher you should implent this interface
func NewByAttribute ¶
NewByAttribute search for any attribute that implement the given Key with the given Value
func WithClass ¶
WithClass match any tag with a class with a stringis a constructor that return a filter that going to match if the node pass to the match method implemet the specify class
func WithParent ¶
WithParent is a function that can be pass to a ogle and integrate some previus filter over the base of tags and attributes