package
Version:
v0.0.0-...-8135c48
Opens a new window with list of versions in this module.
Published: Jul 16, 2016
License: BSD-2-Clause, MIT
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
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.