runtime

package
v0.0.0-...-519a79d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	L *lua.LState
	// contains filtered or unexported fields
}

func New

func New() *Runtime

func (*Runtime) Close

func (r *Runtime) Close()

func (*Runtime) Compile

func (r *Runtime) Compile(script string) (*lua.FunctionProto, error)

func (*Runtime) Execute

func (r *Runtime) Execute(bc *lua.FunctionProto) error

func (*Runtime) LoadModule

func (r *Runtime) LoadModule(fn func(l *lua.LState) int)

func (*Runtime) Run

func (r *Runtime) Run(script string) error

Jump to

Keyboard shortcuts

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