lua

package
v6.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LuaPool = types.NewPool(64)

LuaPool is the global LState pool

Functions

func LValueToInterface

func LValueToInterface(val lua.LValue) interface{}

LValueToInterface converts a generic LValue to a native type

func NewStream

func NewStream(L *lua.LState, stream chan interface{}) *lua.LUserData

NewStream creates a LuaStream

func NewValue

func NewValue(L *lua.LState, value interface{}) lua.LValue

NewValue creates a value from interface{} in the interpreter

func Path

func Path() string

Path returns the interpreter's current Lua Path

func SetPath

func SetPath(lpath string)

SetPath sets the interpreter's current Lua Path

Types

type List

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

List is the list data type to be used with a Lua instance

type Map

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

Map is used internally for the Lua instance

type Stream

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

Stream is the data type used as a stream by the lua instances

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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