v8

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(path, code string) (string, error)

Types

type Error

type Error = v8go.JSError

type VM

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

func Compile

func Compile(path, code string) (*VM, error)

func Load

func Load() (*VM, error)

func (*VM) Close

func (vm *VM) Close()

func (*VM) Eval

func (vm *VM) Eval(path, expr string) (string, error)

func (*VM) Script

func (vm *VM) Script(path, code string) error

Compile a script into the context

type Value

type Value = v8go.Value

Jump to

Keyboard shortcuts

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