jsinterpreter

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsInterpreter

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

func (*JsInterpreter) RetrieveValueFromModule added in v0.5.0

func (i *JsInterpreter) RetrieveValueFromModule(module string, prop string) (otto.Value, error)

func (*JsInterpreter) Run

func (i *JsInterpreter) Run(modules []JsModule, js string, resultModule string, resultProperty string) (res interface{}, err error)

type JsModule

type JsModule struct {
	Name    string
	Factory func(jsInt *JsInterpreter) motto.ModuleLoader
}

Jump to

Keyboard shortcuts

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