https://github.com/zzossig/carrot
🥕CSS Selectors Level 3 implementation
https://github.com/zzossig/carrot
css go
Last synced: about 2 months ago
JSON representation
🥕CSS Selectors Level 3 implementation
- Host: GitHub
- URL: https://github.com/zzossig/carrot
- Owner: zzossig
- License: mit
- Created: 2021-04-05T01:35:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T22:40:56.000Z (about 4 years ago)
- Last Synced: 2025-02-28T00:17:03.345Z (about 2 months ago)
- Topics: css, go
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - carrot
README
# 🥕carrot
[](https://pkg.go.dev/github.com/zzossig/carrot)
[](https://goreportcard.com/report/github.com/zzossig/carrot)
> CSS Selectors Level 3 implementationCarrot is built to select HTML node using CSS3 selectors.
## Basic Usage
```go
carrot := New().SetDoc("./eval/testdata/t.html")
e1 := carrot.Eval("h1") // return []*html.Node
err := carrot.Errors() // return []error
```