package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Jan 13, 2016
License: BSD-2-Clause, Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
cascadia
The Cascadia package implements CSS selectors for use with the parse trees produced by the html package.
Documentation
¶
The cascadia package is an implementation of CSS selectors.
A Selector is a function which tells whether a node matches or not.
Compile parses a selector and returns, if successful, a Selector object
that can be used to match against html.Node objects.
MustCompile is like Compile, but panics instead of returning an error.
Filter returns the nodes in nodes that match the selector.
Match returns true if the node matches the selector.
MatchAll returns a slice of the nodes that match the selector,
from n and its children.
MatchFirst returns the first node that matches s, from n and its children.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.