Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SelectorList ¶
type SelectorList []Selector
SelectorList is a comma-separated list of selectors.
func Parse ¶
func Parse(input string) (SelectorList, error)
Parse parses a CSS-like selector string into a SelectorList.
func (SelectorList) FindAll ¶
FindAll returns all nodes in root (walking the full tree) that match the selector list. For heading matches, the full section is expanded.
func (SelectorList) MatchTopLevel ¶
MatchTopLevel returns all direct children of root that match the selector list. For heading matches, the full section is expanded (heading + subsequent siblings until a heading of the same or higher level).
Click to show internal directories.
Click to hide internal directories.