system

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interpolate

func Interpolate(str string, vars util.Values) (string, error)

func NewInterpolatedValues

func NewInterpolatedValues(wrapped util.Values, vars util.Values) util.Values

Types

type Interpreter

type Interpreter struct {
	// contains filtered or unexported fields
}

func NewInterpreter

func NewInterpreter(log *logging.Logger,
	scripts map[string]string) (*Interpreter, error)

func (*Interpreter) Run added in v0.0.6

func (interp *Interpreter) Run(s *Script, vars util.Values) (ok bool, result interface{}, msg string, err error)

func (*Interpreter) RunAll added in v0.0.6

func (interp *Interpreter) RunAll(sl *ScriptList, vars util.Values) (bool, []interface{}, []string, error)

type OpAdapter

type OpAdapter struct {
	// contains filtered or unexported fields
}

func NewOpAdapter

func NewOpAdapter(interp *Interpreter, script *Script) *OpAdapter

func (*OpAdapter) Exec

func (o *OpAdapter) Exec(subjects []interface{}, args []interface{}) (bool, interface{}, error)

implements Op

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript(script string, t ScriptType) (*Script, error)

type ScriptList added in v0.0.6

type ScriptList []*Script

func NewScriptList added in v0.0.6

func NewScriptList(expressions []string, t ScriptType) (*ScriptList, error)

type ScriptType added in v0.0.6

type ScriptType uint8
const (
	STMT ScriptType = iota
	EXPR
)

Directories

Path Synopsis
op
std

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL