Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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 implementation

Carrot 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
```