Documentation
¶
Index ¶
- func GoTypeToLuaType(l *lua.LState, goValue any) lua.LValue
- func LuaToAny(L *lua.LState, value lua.LValue) any
- func LuaTypeToGoType(l *lua.LState, lvalue lua.LValue) any
- func MapToStruct(l *lua.LState, lvalue lua.LValue, target any) error
- func MapToTable(L *lua.LState, m map[string]any) *lua.LTable
- func PushError(L *lua.LState, err error) int
- func StructToTable(l *lua.LState, structValue any) (*lua.LTable, error)
- func TableToArray(L *lua.LState, table *lua.LTable) []any
- func TableToMap(L *lua.LState, table *lua.LTable) map[string]any
- func TableToMapAny(L *lua.LState, table *lua.LTable) map[any]any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToStruct ¶
MapToStruct maps a Lua table into a Go struct via reflection. Field matching priority: `lua` tag > `json` tag > exact field name > snake_case of field name.
func StructToTable ¶
StructToTable converts a Go struct to a Lua table
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.