lua

package
v0.0.0-...-381c4e2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LTNil      = lua.LTNil
	LTFunction = lua.LTFunction
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LTable

type LTable = lua.LTable

type LuaFlag

type LuaFlag struct {
	VMPool
	// contains filtered or unexported fields
}

func (*LuaFlag) Set

func (l *LuaFlag) Set(script string) (err error)

func (*LuaFlag) String

func (lf *LuaFlag) String() string

type VM

type VM struct {
	*lua.LState
	*lua.LTable
	schnittstellen.Pool[LTable, *LTable]
}

type VMPool

type VMPool struct {
	schnittstellen.Pool[VM, *VM]
}

func MakeVMPool

func MakeVMPool(script string) (ml *VMPool, err error)

func (*VMPool) Set

func (sp *VMPool) Set(script string) (err error)

func (*VMPool) SetReader

func (sp *VMPool) SetReader(reader io.Reader) (err error)

Jump to

Keyboard shortcuts

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