Versions in this module Expand all Collapse all v0 v0.5.6 Aug 10, 2018 Changes in this version + func ConvertToSameType(left interface{}, right interface{}) (interface{}, interface{}, error) + type Expr interface + Eval func() (interface{}, error) + EvalWithData func(value interface{}, inputScope data.Scope, resolver data.Resolver) (interface{}, error) + EvalWithScope func(inputScope data.Scope, resolver data.Resolver) (interface{}, error) + type Expression struct + Left *Expression + Operator OPERATIOR + Right *Expression + Type funcexprtype.Type + Value interface{} + func NewExpression() *Expression + func (e *Expression) IsFunction() bool + func (e *Expression) IsNil() bool + func (e *Expression) String() string + func (e *Expression) UnmarshalJSON(exprData []byte) error + func (f *Expression) Eval() (interface{}, error) + func (f *Expression) EvalWithData(data interface{}, inputScope data.Scope, resolver data.Resolver) (interface{}, error) + func (f *Expression) EvalWithScope(inputScope data.Scope, resolver data.Resolver) (interface{}, error) + type OPERATIOR int + const ADDITION + const AND + const DIVISION + const EQ + const GEGATIVE + const GT + const GTE + const INT_DIVISTION + const LT + const LTE + const MODULAR_DIVISION + const MULTIPLICATION + const NOT_EQ + const OR + const SUBTRACTION + const UNINE + func ToOperator(operator string) (OPERATIOR, bool) + func (o OPERATIOR) String() string + type TernaryExpressio struct + First interface{} + Second interface{} + Third interface{} + func (t *TernaryExpressio) Eval() (interface{}, error) + func (t *TernaryExpressio) EvalWithData(value interface{}, inputScope data.Scope, resolver data.Resolver) (interface{}, error) + func (t *TernaryExpressio) EvalWithScope(inputScope data.Scope, resolver data.Resolver) (interface{}, error) + func (t *TernaryExpressio) HandleParameter(param interface{}, value interface{}, inputScope data.Scope, ...) (interface{}, error) v0.5.3-rc1 Mar 29, 2018 v0.5.2-rc4 Mar 18, 2018 v0.5.2-rc3 Mar 15, 2018 v0.5.2-rc1 Mar 9, 2018