Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AST ¶
type AST struct {
AndExpr []*SubGroup `parser:"@@ { @@ }" json:"ands"`
}
func (*AST) ApplyTransforms ¶
func (a *AST) ApplyTransforms(transformer FieldTransformer) error
func (*AST) FindAllFieldNames ¶
FindAllFieldNames returns all used field names in the AST. There is **NO** ordering on the elements, i.e. they might not come in the same order specified in the AST.
func (*AST) PurgeDeprecatedStatusField ¶
type Field ¶
type Field struct { Minus string `parser:"@Minus?" json:"minus,omitempty"` Name string `parser:"@Name Colon" json:"name"` QuotedString string `parser:"( @QuotedString" json:"qstr,omitempty"` String string `parser:" | @Name )" json:"str,omitempty"` }
func (*Field) StringValue ¶
func (*Field) Transform ¶
func (f *Field) Transform(transformer FieldTransformer) error
type FieldTransformer ¶
var NoOpFieldTransformer FieldTransformer
Click to show internal directories.
Click to hide internal directories.