Documentation ¶
Index ¶
- func ConvertToSameType(left interface{}, right interface{}) (interface{}, interface{}, error)
- type Expr
- type Expression
- 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)
- func (e *Expression) IsFunction() bool
- func (e *Expression) IsNil() bool
- func (e *Expression) String() string
- func (e *Expression) UnmarshalJSON(exprData []byte) error
- type OPERATIOR
- type TernaryExpressio
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToSameType ¶ added in v0.5.5
func ConvertToSameType(left interface{}, right interface{}) (interface{}, interface{}, error)
Types ¶
type Expression ¶
type Expression struct { Left *Expression `json:"left"` Operator OPERATIOR `json:"operator"` Right *Expression `json:"right"` Value interface{} `json:"value"` Type funcexprtype.Type `json:"type"` }
func NewExpression ¶
func NewExpression() *Expression
func (*Expression) Eval ¶
func (f *Expression) Eval() (interface{}, error)
func (*Expression) EvalWithData ¶
func (*Expression) EvalWithScope ¶
func (*Expression) IsFunction ¶
func (e *Expression) IsFunction() bool
func (*Expression) IsNil ¶
func (e *Expression) IsNil() bool
func (*Expression) String ¶
func (e *Expression) String() string
func (*Expression) UnmarshalJSON ¶
func (e *Expression) UnmarshalJSON(exprData []byte) error
type TernaryExpressio ¶
type TernaryExpressio struct { First interface{} Second interface{} Third interface{} }
func (*TernaryExpressio) Eval ¶
func (t *TernaryExpressio) Eval() (interface{}, error)
func (*TernaryExpressio) EvalWithData ¶
func (*TernaryExpressio) EvalWithScope ¶
func (*TernaryExpressio) HandleParameter ¶
Click to show internal directories.
Click to hide internal directories.