Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2018 Changes in this version + func ApplyTemplate(template *Template, param interface{}, context *Context) (result interface{}) + func CacheTemplate(arg interface{}, templates map[string]*pongo2.Template, ...) error + func CompileFile(file string) error + func ContainsTemplate(arg interface{}) bool + func GetByKeys(keys []string, value interface{}) (interface{}, error) + func KeyToList(keys string) []string + func LoadYAML(buf []byte) (*yaml.Node, error) + func LoadYAMLFile(file string) (*yaml.Node, error) + func MapToValue(a map[string]interface{}) (result map[string]Value, err error) + func MappingNodeToMap(node *yaml.Node) (result map[string]*yaml.Node) + func RegisterMiniGoFunc(name string, f MiniGoFunc) + func RegisterStmtParser(funcName string, callback StmtParser) + func RunTests(dir string) (total, success, failed int) + func StmtsToFunc(funcName string, stmts []*Stmt) (func(*Context) (interface{}, error), error) + type Constant struct + func (c *Constant) Value(context *Context) interface{} + type Context struct + VM *VM + func NewContext(vm *VM) *Context + func (context *Context) Clear(key string) + func (context *Context) Data() map[string]interface{} + func (context *Context) Extend(values map[string]interface{}) *Context + func (context *Context) Get(key string) (interface{}, error) + func (context *Context) HasKey(key string) bool + func (context *Context) MayGet(key string) interface{} + func (context *Context) MaybeInt(key string) int + func (context *Context) MaybeList(key string) []interface{} + func (context *Context) MaybeMap(key string) map[string]interface{} + func (context *Context) MaybeString(key string) string + func (context *Context) Set(key string, value interface{}) + func (context *Context) SetByKeys(key string, value interface{}) + func (context *Context) SetMap(data map[string]interface{}) + type DebuggerRPC struct + func (d *DebuggerRPC) Command(param []byte, ack *string) error + type Environment struct + VM *VM + func NewEnvironment() *Environment + func (env *Environment) Clone() ext.Environment + func (env *Environment) HandleEvent(event string, context map[string]interface{}) (err error) + func (env *Environment) IsEventHandled(event string, context map[string]interface{}) bool + func (env *Environment) Load(source, code string) error + func (env *Environment) LoadExtensionsForPath(extensions []*schema.Extension, timeLimit time.Duration, ...) error + type Error struct + type MiniGo struct + func CompileExpr(expr string) (*MiniGo, error) + func CompileGoStmt(file string) (*MiniGo, error) + func (code *MiniGo) Eval(context *Context, offset int, stack *Stack) ([]interface{}, error) + func (code *MiniGo) Run(context *Context) (interface{}, error) + func (code *MiniGo) String() string + type MiniGoFunc func(vm *VM, args []interface{}) []interface + type MiniGoValue struct + func NewMiniGoValue(param interface{}) (*MiniGoValue, error) + func (i *MiniGoValue) Value(context *Context) interface{} + type Nil struct + func (i *Nil) Value(context *Context) interface{} + type Op struct + func (op Op) String() string + type OpCode int + const ADD + const ADD_ASSIGN + const AND + const AND_ASSIGN + const AND_NOT + const AND_NOT_ASSIGN + const ARROW + const ASSIGN + const CALL + const CHAR + const DEC + const DECINDEX + const DECPROP + const DEFINE + const ELLIPSIS + const EQL + const FLOAT + const GEQ + const GET + const GETINDEX + const GETPROP + const GOTO + const GOTOIF + const GTR + const IDENT + const ILLEGAL + const IMAG + const INC + const INCINDEX + const INCPROP + const INT + const LAND + const LEQ + const LOR + const LSS + const MUL + const MUL_ASSIGN + const NEQ + const NOT + const OR + const OR_ASSIGN + const POP + const PUSH + const QUO + const QUO_ASSIGN + const RANGE + const REM + const REM_ASSIGN + const RET + const SET + const SETINDEX + const SETPROP + const SHL + const SHL_ASSIGN + const SHR + const SHR_ASSIGN + const STRING + const SUB + const SUB_ASSIGN + const SUB_UNARY + const XOR + const XOR_ASSIGN + func (i OpCode) String() string + type Stack struct + func NewStack() *Stack + type Stmt struct + Always []*Stmt + Args map[string]Value + Column int + Delay int + Dir string + ElseStmt []*Stmt + File string + Line int + LoopVar string + Name string + RawData map[string]interface{} + RawNode map[string]*yaml.Node + Register string + Rescue []*Stmt + Retry int + Until *MiniGo + Vars map[string]Value + When *MiniGo + WithDict Value + WithItems Value + Worker int + func MakeStmts(FileName string, node *yaml.Node) ([]*Stmt, error) + func NewStmt(FileName string, node *yaml.Node) (stmt *Stmt, err error) + func (stmt *Stmt) Arg(key string, context *Context) interface{} + func (stmt *Stmt) Error(err error) error + func (stmt *Stmt) Errorf(msg string, args ...interface{}) error + func (stmt *Stmt) Func() (func(context *Context) (interface{}, error), error) + func (stmt *Stmt) HasArgs(keys ...string) error + type StmtParser func(stmt *Stmt) (func(*Context) (interface{}, error), error) + func GetStmtParser(funcName string) StmtParser + type Template struct + func NewTemplate(param interface{}) *Template + func (t *Template) Value(context *Context) interface{} + type VM struct + Context *Context + StopChan chan func() + func NewVM() *VM + func (vm *VM) Clone() *VM + func (vm *VM) LoadFile(file string) error + func (vm *VM) LoadString(fileName, yamlString string) error + func (vm *VM) Run(data map[string]interface{}) error + func (vm *VM) RunFile(file string) (interface{}, error) + func (vm *VM) Stop() + func (vm *VM) String() string + type Value interface + Value func(context *Context) interface{} + func NewValue(a interface{}) (Value, error)