Documentation
¶
Index ¶
- Constants
- func CastArgError(L *lua.LState, arg int, exp string, got any)
- func FuncResCastError(L *lua.LState, res int, exp string, got any)
- func LuaArrayModuleLoader(L *lua.LState) int
- func LuaArrayRegisterGlobalMetatable(L *lua.LState)
- func LuaMapModuleLoader(L *lua.LState) int
- func LuaMapRegisterGlobalMetatable(L *lua.LState)
- func MapLuaArrayOrTableToGoMap[K comparable, V any](p lua.LValue, level int, mapper func(k, v lua.LValue) (K, V)) (map[K]V, error)
- func MapLuaArrayOrTableToGoSlice[T any](p lua.LValue, level int, mapper func(val lua.LValue) T) ([]T, error)
- func MapVariadicArgsToGoSlice[T any](start int, L *lua.LState, mapper func(val lua.LValue) T) ([]T, error)
- func NewUserData(data LuaUserData, L *lua.LState) *lua.LUserData
- func Register(L *lua.LState, toRegister ...LuaRegistrar)
- func TableElemCastError(L *lua.LState, level int, exp string, got any)
- func UnwrapLValueToAny(l lua.LValue) any
- type GblMap
- type GblSlice
- type LuaRegistrar
- type LuaUserData
Constants ¶
View Source
const ARRAY_METATABLE_NAME = "GblSliceTable"
View Source
const ARRAY_MODULES_NAME = "GblSlice"
View Source
const MAP_METATABLE_NAME = "GblMapTable"
View Source
const MAP_MODULES_NAME = "GblMap"
Variables ¶
This section is empty.
Functions ¶
func FuncResCastError ¶ added in v0.0.16
func LuaArrayModuleLoader ¶ added in v0.0.9
func LuaArrayRegisterGlobalMetatable ¶ added in v0.0.9
func LuaMapModuleLoader ¶ added in v0.0.9
func LuaMapRegisterGlobalMetatable ¶ added in v0.0.9
func MapLuaArrayOrTableToGoMap ¶ added in v0.0.2
func NewUserData ¶
func NewUserData(data LuaUserData, L *lua.LState) *lua.LUserData
func Register ¶ added in v0.0.4
func Register(L *lua.LState, toRegister ...LuaRegistrar)
func TableElemCastError ¶ added in v0.0.16
func UnwrapLValueToAny ¶ added in v0.0.4
Types ¶
type GblMap ¶ added in v0.0.19
type GblMap struct {
Map interface{}
Len func() int
GetValue func(idx lua.LValue) lua.LValue
SetValue func(idx lua.LValue, val lua.LValue)
ForEach func(f func(k, v lua.LValue))
}
func (*GblMap) LuaMetatableType ¶ added in v0.0.19
type GblSlice ¶ added in v0.0.19
type GblSlice struct {
Slice interface{}
Len func() int
Index func(idx int) lua.LValue
SetIndex func(idx int, val lua.LValue)
}
func (*GblSlice) LuaMetatableType ¶ added in v0.0.19
type LuaRegistrar ¶ added in v0.0.9
type LuaUserData ¶
type LuaUserData interface {
LuaMetatableType() string
}
Directories
¶
| Path | Synopsis |
|---|---|
|
doc
|
|
|
01.Primitives
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
02.Slices/array
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
02.Slices/matrix
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
02.Slices/vector
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
03.Maps
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
04.Pointers
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
05.Interfaces/dog
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
05.Interfaces/human
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
05.Interfaces/lion
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
05.Interfaces/mammallist
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
|
06.Functions
Code generated by gobindlua; DO NOT EDIT.
|
Code generated by gobindlua; DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.