Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllOf ¶
type AllOf struct {
Operands []Term
}
AllOf represents two or more components, all of which must occur, in any order.
type AnyOf ¶
type AnyOf struct {
Operands []Term
}
AnyOf represents two or more options: one or more of them must occur, in any order.
type BasicType ¶
BasicType represents CSS basic data types, which appear between < and > (e.g., <length>, <percentage>, etc.). For numeric data types, this type notation can annotate any range restrictions using the bracketed range notation described below.
type Group ¶
Group represents a group of components. If Required is true, the group must produce at least one value.
type Keyword ¶
type Keyword string
Keyword represents keyword values (such as auto, disc, etc.), which appear literally, without quotes (e.g. auto).
type NonTerminal ¶
type NonTerminal string
NonTerminal represents non-terminals that do not share the same name as a property.
type OneOf ¶
type OneOf struct {
Operands []Term
}
OneOf represents two or more alternatives: exactly one of them must occur.
type OneOrMore ¶
type OneOrMore struct {
Operand Term
}
OneOrMore indicates that the operand occurs one or more times.
type PropertyType ¶
type PropertyType string
PropertyType represents types that have the same range of values as a property bearing the same name (e.g., <'border-width'>, <'background-attachment'>, etc.)
type Repeat ¶
Range indicates that the operand occurs at least Min and at most Max times. If Commas is true, values must be separated by commas.
type Seq ¶
Seq represents a juxtaposition of components that means that all of them must occur, in the given order.
type Term ¶
type Term interface {
// contains filtered or unexported methods
}
Term represents a term in a CSS value grammar.
type ZeroOrMore ¶
type ZeroOrMore struct {
Operand Term
}
ZeroOrMore indicates that the operand occurs zero or more times.