Documentation
¶
Index ¶
- Variables
- type Rule
- func (r *Rule) Bool(database map[string]interface{}) (bool, error)
- func (r *Rule) Eval(datasource map[string]interface{}) (interface{}, error)
- func (r *Rule) Float(database map[string]interface{}) (float64, error)
- func (r *Rule) Int(database map[string]interface{}) (int64, error)
- func (r *Rule) SetExpr(expr string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRuleEmpty = errors.New("rule is empty") ErrUnsupportToken = errors.New("unsupport token") ErrUnsupportExpr = errors.New("unsupport expr") ErrUnsupportParam = errors.New("unsupport param") ErrNotNumber = errors.New("not a number") ErrIndexNotNumber = errors.New("index not a number") ErrNotBool = errors.New("not boolean") ErrKeyNotFound = errors.New("map key not found") )
错误定义
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.