Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T22:40:56.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T22:29:05.797Z (3 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
[![Go Reference](https://pkg.go.dev/badge/github.com/zzossig/carrot.svg)](https://pkg.go.dev/github.com/zzossig/carrot)
[![Go Report Card](https://goreportcard.com/badge/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
```