javascript

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext() map[string]interface{}

func Run

func Run(str string, context map[string]interface{}) (res interface{}, err error)

func RunScript added in v0.0.4

func RunScript(str string, context map[string]interface{}) (res interface{}, err error)

Types

type Script

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

func NewScript

func NewScript() (script *Script, err error)

func NewScriptByParent

func NewScriptByParent(parent *Script) (script *Script, err error)

func (*Script) GetScriptValue

func (this_ *Script) GetScriptValue(script string) (interface{}, error)

func (*Script) GetStringScriptValue

func (this_ *Script) GetStringScriptValue(script string) (value string, err error)

func (*Script) RunScript added in v1.2.13

func (this_ *Script) RunScript(script string) (interface{}, error)

func (*Script) Set

func (this_ *Script) Set(name string, value interface{}) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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