Versions in this module Expand all Collapse all v0 v0.1.2 Feb 3, 2025 Changes in this version + const LUA_GLOBALSINDEX + const LUA_MAXSTACK + const LUA_MINSTACK + const LUA_REGISTRYINDEX + type GoFunction func(*State) int + type LuaError struct + Code int + Message string + func (e *LuaError) Error() string + type LuaType int + const TypeBoolean + const TypeFunction + const TypeLightUserData + const TypeNil + const TypeNone + const TypeNumber + const TypeString + const TypeTable + const TypeThread + const TypeUserData + func (t LuaType) String() string + type State struct + L *C.lua_State + func New() *State + func NewSafe() *State + func (s *State) AddPackagePath(path string) error + func (s *State) Cleanup() + func (s *State) Close() + func (s *State) CompileAndLoad(code string, name string) error + func (s *State) CompileBytecode(code string, name string) ([]byte, error) + func (s *State) DoFile(filename string) error + func (s *State) DoString(str string) error + func (s *State) GetField(index int, key string) + func (s *State) GetGlobal(name string) + func (s *State) GetTable(index int) + func (s *State) GetTableLength(index int) int + func (s *State) GetTop() int + func (s *State) GetType(index int) LuaType + func (s *State) IsFunction(index int) bool + func (s *State) IsTable(index int) bool + func (s *State) LoadBytecode(bytecode []byte, name string) error + func (s *State) NewTable() + func (s *State) Pop(n int) + func (s *State) PushBoolean(b bool) + func (s *State) PushGoFunction(fn GoFunction) error + func (s *State) PushNil() + func (s *State) PushNumber(n float64) + func (s *State) PushString(str string) + func (s *State) PushTable(table map[string]interface{}) error + func (s *State) PushValue(v interface{}) error + func (s *State) RegisterGoFunction(name string, fn GoFunction) error + func (s *State) Remove(index int) + func (s *State) SetField(index int, key string) + func (s *State) SetGlobal(name string) + func (s *State) SetPackagePath(path string) error + func (s *State) SetTable(index int) + func (s *State) SetTop(index int) + func (s *State) ToBoolean(index int) bool + func (s *State) ToNumber(index int) float64 + func (s *State) ToString(index int) string + func (s *State) ToTable(index int) (map[string]interface{}, error) + func (s *State) ToValue(index int) (interface{}, error) + func (s *State) UnregisterGoFunction(name string) + type TableValue interface