vm

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const LuaLDir = "lua-tree/share/lua/5.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts added in v0.3.0

type Opts struct {
	// Inject and/or override core Lua file system
	InjectFS *embed.FS
}

type VM

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

func New

func New(opts Opts) (*VM, error)

func (*VM) CallByParams

func (v *VM) CallByParams(name string, args ...string) (string, error)

func (*VM) Close

func (v *VM) Close()

func (*VM) Execute

func (v *VM) Execute(file io.Reader, filename string) error

Jump to

Keyboard shortcuts

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