Documentation
¶
Index ¶
- Variables
- type Lua
- func (l *Lua) Close()
- func (l *Lua) DoString(luaScript string) error
- func (l *Lua) GetGlobalTable(name string) *lua.LTable
- func (l *Lua) GetState() *lua.LState
- func (l *Lua) MustGetInt(vGlobal string) int
- func (l *Lua) MustGetMap(vGlobal string) map[string]string
- func (l *Lua) MustGetString(vGlobal string) string
- func (l *Lua) MustGetTable(vGlobal string) []string
- func (l *Lua) NewTable() *lua.LTable
- func (l *Lua) SetFunction(name string, f func(*lua.LState) int)
- func (l *Lua) SetGlobal(name string, value any)
- func (l *Lua) SetGlobalTable(name string, tbl *lua.LTable)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorFunctionNotFound = errors.New("function not found") ErrorNotAllowedType = errors.New("not allowed return type") )
Functions ¶
This section is empty.
Types ¶
type Lua ¶
type Lua struct {
// contains filtered or unexported fields
}
func (*Lua) GetGlobalTable ¶
GetGlobalTable returns the global variable as a *lua.LTable.
func (*Lua) MustGetInt ¶
func (*Lua) MustGetString ¶
func (*Lua) MustGetTable ¶
Click to show internal directories.
Click to hide internal directories.