package
module
Version:
v0.0.0-...-f5aabfc
Opens a new window with list of versions in this module.
Published: Apr 9, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
🥕carrot

CSS Selectors Level 3 implementation
Carrot is built to select HTML node using CSS3 selectors.
Basic Usage
carrot := New().SetDoc("./eval/testdata/t.html")
e1 := carrot.Eval("h1") // return []*html.Node
err := carrot.Errors() // return []error
Documentation
¶
CSS is a base object to evaluate css selectors.
New creates new CSS object.
Errors returns errors field
Eval evaluates a css selector
SetDoc set document to a context.
input param can be url or local filepath.
SetDocN is another version of SetDoc.
SetDocR is another version of SetDoc.
SetDocS is another version of SetDoc.
String returns input field
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.