Versions in this module Expand all Collapse all v1 v1.66.2 Mar 12, 2024 v1.66.1 Mar 12, 2024 Changes in this version + var ErrLuaObjectCallResults = errors.New("results must be a pointer to pointer/slice/struct") + var ErrLuaObjectCallable = errors.New("LuaObject must be callable") + var ErrLuaObjectIndexable = errors.New("not indexable") + var ErrLuaObjectUnsharedState = errors.New("LuaObjects must share the same state") + var ErrTableConv = errors.New("some table elements could not be converted") + var Null = NullT(0) + func Complex(L *lua.State) int + func GoToLua(L *lua.State, a interface{}) + func GoToLuaProxy(L *lua.State, a interface{}) + func Init() *lua.State + func LuaToGo(L *lua.State, idx int, a interface{}) error + func MakeChan(L *lua.State) int + func MakeMap(L *lua.State) int + func MakeSlice(L *lua.State) int + func ProxyIpairs(L *lua.State) int + func ProxyMethod(L *lua.State) int + func ProxyPairs(L *lua.State) int + func ProxyType(L *lua.State) int + func RegProxyIpairs(L *lua.State, table, name string) + func Register(L *lua.State, table string, values Map) + func Unproxify(L *lua.State) int + type ConvError struct + From interface{} + To interface{} + func (l ConvError) Error() string + type LuaObject struct + func NewLuaObject(L *lua.State, idx int) *LuaObject + func NewLuaObjectFromName(L *lua.State, subfields ...interface{}) *LuaObject + func NewLuaObjectFromValue(L *lua.State, val interface{}) *LuaObject + func (lo *LuaObject) Call(results interface{}, args ...interface{}) error + func (lo *LuaObject) Close() + func (lo *LuaObject) Get(a interface{}, subfields ...interface{}) error + func (lo *LuaObject) GetObject(subfields ...interface{}) (*LuaObject, error) + func (lo *LuaObject) Iter() (*LuaTableIter, error) + func (lo *LuaObject) Push() + func (lo *LuaObject) Set(a interface{}, subfields ...interface{}) error + func (lo *LuaObject) Setv(src *LuaObject, keys ...string) error + type LuaTableIter struct + func (ti *LuaTableIter) Error() error + func (ti *LuaTableIter) Next(key, value interface{}) bool + type Map map[string]interface + type NullT int