vm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_ARG_REQUIRED = "Argument is required (%s)"
)

Variables

This section is empty.

Functions

func Cache

func Cache(vm *Vm)

* * Cache * @param vm *Vm *

func Console

func Console(vm *Vm)

* * Console * @param vm *Vm *

func Event

func Event(vm *Vm)

* * Event * @param vm *Vm *

func Fetch

func Fetch(vm *Vm)

* * Fetch * @param vm *Vm *

Types

type Vm

type Vm struct {
	*goja.Runtime
	Ctx et.Json
}

func New

func New() *Vm

* * New * Create a new vm *

func (*Vm) Run

func (v *Vm) Run(script string) (goja.Value, error)

* * Run * Run a script *

Jump to

Keyboard shortcuts

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