Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Derive Derive `parser:"'#' '[' @@ ']'"`
}
type BoolList ¶
type BoolList struct {
Value []Boolean `parser:"'[' (@('true' | 'false') (',' @('true' | 'false'))*)? ']'"`
}
type Derive ¶ added in v0.12.2
type Derive struct { Identity string `parser:"@Ident"` Attrs []*NameValue `parser:"('(' (@@ (',' @@)*)? ')')?"` }
Derive an specified identity and it's attribute list. `#[ident]` `#[ident(k1=1,k2="2")]` `#[ident(k1=[1,2,3],k2=["1","2","3"])]`
func (*Derive) IsHeadless ¶ added in v0.12.2
`#[ident]` only, not contain any attributes.
type Derives ¶ added in v0.12.2
type Derives []*Derive
func (Derives) ContainHeadless ¶ added in v0.12.2
ContainHeadless contain headless
type FloatList ¶
type FloatList struct {
Value []float64 `parser:"'[' (@Float (',' (@Float | @Int))*)? ']'"`
}
NOTE: FloatList float list. must be first is float.
type IntegerList ¶
type IntegerList struct {
Value []int64 `parser:"'[' (@Int (',' @Int)*)? ']'"`
}
func (IntegerList) Type ¶ added in v0.12.3
func (IntegerList) Type() string
type NameValue ¶
type NameValue struct { // name Name string `parser:"@Ident '='"` // one of follow // String, Integer, Float, Bool, // StringList, IntegerList, FloatList, BoolList, Value ValueType `parser:"@@"` }
NameValue like `#[ident(name=value]`
type StringList ¶
type StringList struct {
Value []string `parser:"'[' (@String (',' @String)*)? ']'"`
}
func (StringList) Type ¶ added in v0.12.3
func (StringList) Type() string
Click to show internal directories.
Click to hide internal directories.