cssparser

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CssParser

type CssParser struct {
	Error  error
	Result []*Rule
	// contains filtered or unexported fields
}

func NewCssParser

func NewCssParser() *CssParser

func (*CssParser) Parse

func (p *CssParser) Parse(input string) ([]*Rule, error)

type CssParserState

type CssParserState uint32
const (
	CssParserStateRoot CssParserState = iota
	CssParserStateSelector
	CssParserStateBlock
	CssParserStatePropName
	CssParserStatePropValue
)

type Declaration

type Declaration struct {
	Property string
	Value    string
}

type Rule

type Rule struct {
	Selector     string
	Declarations []*Declaration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL