Documentation
¶
Index ¶
- func Add(a, b interface{}) interface{}
- func GetBuiltinProto(typ reflect.Type, prop interface{}) interface{}
- func GetElem(obj, prop interface{}) interface{}
- func GetProp(obj, prop interface{}) interface{}
- func IsNativeFn(o interface{}) bool
- func ToBool(v interface{}) bool
- func ToNum(v interface{}) float64
- func ToStr(v interface{}) string
- type Args
- type BuiltinFn
- type ExprEvaluator
- type NativeFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuiltinProto ¶
func IsNativeFn ¶
func IsNativeFn(o interface{}) bool
Types ¶
type BuiltinFn ¶
type BuiltinFn struct {
// contains filtered or unexported fields
}
func NewBuiltinFn ¶
type ExprEvaluator ¶
type ExprEvaluator struct {
// contains filtered or unexported fields
}
func NewExprEvaluator ¶
func NewExprEvaluator(node parser.Node, p *parser.Parser) *ExprEvaluator
func (*ExprEvaluator) Exec ¶
func (ee *ExprEvaluator) Exec(vars map[string]interface{}) *ExprEvaluator
func (*ExprEvaluator) GetResult ¶
func (ee *ExprEvaluator) GetResult() (interface{}, error)
func (*ExprEvaluator) Release ¶
func (ee *ExprEvaluator) Release()
Click to show internal directories.
Click to hide internal directories.