Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sel ¶
type Sel interface { Matcher Specificity() Specificity String() string PseudoElement() string }
func ParseWithPseudoElement ¶
type Selector ¶
func MustCompile ¶
type SelectorGroup ¶
type SelectorGroup []Sel
func ParseGroup ¶
func ParseGroup(sel string) (SelectorGroup, error)
func ParseGroupWithPseudoElements ¶
func ParseGroupWithPseudoElements(sel string) (SelectorGroup, error)
func (SelectorGroup) String ¶
func (c SelectorGroup) String() string
type Specificity ¶
type Specificity [3]int
func (Specificity) Add ¶
func (s Specificity) Add(other Specificity) Specificity
func (Specificity) Less ¶
func (s Specificity) Less(other Specificity) bool
Click to show internal directories.
Click to hide internal directories.