runner

package
v0.0.0-...-a1eae0b Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoInstall = errors.New("there must be an install function")

Functions

This section is empty.

Types

type Console

type Console struct{}

func (Console) Log

func (c Console) Log(msg goja.Value)

func (Console) ToJS

func (c Console) ToJS(rt *goja.Runtime) goja.Value

type Exec

type Exec struct{}

func (Exec) Run

func (e Exec) Run(rt *goja.Runtime) func(goja.Value)

func (Exec) ToJS

func (e Exec) ToJS(rt *goja.Runtime) goja.Value

type Runner

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

func New

func New() *Runner

func (*Runner) Run

func (r *Runner) Run(str string) error

nolint: funlen

Jump to

Keyboard shortcuts

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