Discover Packages
github.com/DEXIDP/DEX
Godeps
_workspace
src
github.com
andybalholm
cascadia
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Mar 3, 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 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
cascadia
The Cascadia package implements CSS selectors for use with the parse trees produced by the html package.
Expand ▾
Collapse ▴
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.