Documentation
¶
Index ¶
Constants ¶
View Source
const ( EOF = iota WS OP_EQI // == equal ignore space OP_EQ // === equal OP_NEQI // != not equal ignore space OP_NEQ // !== not equal OP_RX // ~= match regular expression OP_RXN // ~! not match regular expression OP_GT // > OP_GE // >= OP_LT // < OP_LE // <= LNK_AND // & LNK_OR // | LNK_NOT // NOT LITERAL INTEGER FLOAT BOOLEAN TIME ILLEGAL )
Variables ¶
View Source
var ErrEmptyQuery = errors.New("query is empty, nothing to parse")
Functions ¶
This section is empty.
Types ¶
type Conditions ¶
type Conditions interface { String() string Add(thing *Condition) Equals(thing Conditions) bool AddDateFormat(format string) CheckMap(m map[string]interface{}) (bool, error) CheckStruct(s interface{}) (bool, error) Conditions() []*Condition }
func NewConditions ¶
func NewConditions() Conditions
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Parse ¶
func (p *Parser) Parse() (Conditions, error)
Click to show internal directories.
Click to hide internal directories.