Documentation ¶
Index ¶
- Variables
- func Eval(expression string, env Environment) (_ []reflect.Value, err error)
- func IsIdentifier(v string) bool
- func IsLowerFunc(v interface{}) bool
- func LowerFunc(env Environment, fn func([]reflect.Value) ([]reflect.Value, error)) reflect.Value
- func LowerStruct(env Environment, sub Environment) reflect.Value
- func Repr(x reflect.Value) string
- type ArrayAccess
- type Call
- type Environment
- type Evaluable
- type FieldAccess
- type Ident
- type ModType
- type Modifier
- type OpType
- type Operation
- type Parser
- type SliceAccess
- type Subexpression
- type Value
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsIdentifier ¶
func IsLowerFunc ¶
func IsLowerFunc(v interface{}) bool
func LowerStruct ¶
func LowerStruct(env Environment, sub Environment) reflect.Value
Types ¶
type ArrayAccess ¶
type ArrayAccess struct { Array Evaluable Index Evaluable // contains filtered or unexported fields }
func (*ArrayAccess) Run ¶
func (a *ArrayAccess) Run(env Environment) ([]reflect.Value, error)
type Environment ¶
func IsLowerStruct ¶
func IsLowerStruct(v interface{}) Environment
func NewStandardEnvironment ¶
func NewStandardEnvironment() Environment
type FieldAccess ¶
func (*FieldAccess) Run ¶
func (a *FieldAccess) Run(env Environment) ([]reflect.Value, error)
type Operation ¶
type SliceAccess ¶
type SliceAccess struct { Array Evaluable Low Evaluable High Evaluable // contains filtered or unexported fields }
func (*SliceAccess) Run ¶
func (a *SliceAccess) Run(env Environment) ([]reflect.Value, error)
type Subexpression ¶
type Subexpression struct { Expr Evaluable // contains filtered or unexported fields }
func (*Subexpression) Run ¶
func (s *Subexpression) Run(env Environment) ([]reflect.Value, error)
Click to show internal directories.
Click to hide internal directories.