Documentation
¶
Index ¶
- type Context
- func (c *Context) CallFunc(pos core.Position, name string, positional []core.Value, ...) (core.Value, error)
- func (c *Context) DeleteVar(name string)
- func (c *Context) GetTarget() core.Target
- func (c *Context) GetVar(name string) (core.Value, bool)
- func (c *Context) SetVar(name string, value core.Value)
- type MapTarget
- type RootTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context carries all runtime state available during expression evaluation.
A single Context is created per Program.Run call and passed down through every Eval call.
type MapTarget ¶
type MapTarget struct {
// contains filtered or unexported fields
}
MapTarget is the standard in-memory Target.
func NewMapTarget ¶
func NewMapTarget() *MapTarget
type RootTarget ¶
type RootTarget struct {
Root *insaneJSON.Root
SourceName string
// contains filtered or unexported fields
}
func NewRootTarget ¶
func NewRootTarget(root *insaneJSON.Root, sourceName string, metadata map[string]string) *RootTarget
Click to show internal directories.
Click to hide internal directories.