script

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenPackage

func OpenPackage(L *lua.LState) int

Types

type Engine

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

func NewEngine

func NewEngine() *Engine

func (*Engine) Close

func (e *Engine) Close()

func (*Engine) DoReader

func (e *Engine) DoReader(path string, rdr io.Reader) error

func (*Engine) DoString

func (e *Engine) DoString(file string) error

func (*Engine) GetUserData

func (e *Engine) GetUserData(name string, value interface{}) *lua.LUserData

func (*Engine) Invoke

func (e *Engine) Invoke(fn *lua.LFunction, args []interface{}, outArg reflect.Value) error

func (*Engine) SetCallback

func (e *Engine) SetCallback(name string, _func interface{})

func (*Engine) SetEnum

func (e *Engine) SetEnum(name string, value int64)

func (*Engine) WrapInterface

func (e *Engine) WrapInterface(name string, interfacePointer interface{}, newFunc interface{}, exports []string)

type Filesystem

type Filesystem interface {
	Exists(path string) bool
	Open(path string) (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

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