luaplus

package
v0.0.0-...-2efa35c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoTypeToLuaType

func GoTypeToLuaType(l *lua.LState, goValue any) lua.LValue

func LuaToAny

func LuaToAny(L *lua.LState, value lua.LValue) any

func LuaTypeToGoType

func LuaTypeToGoType(l *lua.LState, lvalue lua.LValue) any

func MapToStruct

func MapToStruct(l *lua.LState, lvalue lua.LValue, target any) error

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 MapToTable

func MapToTable(L *lua.LState, m map[string]any) *lua.LTable

func PushError

func PushError(L *lua.LState, err error) int

func StructToTable

func StructToTable(l *lua.LState, structValue any) (*lua.LTable, error)

StructToTable converts a Go struct to a Lua table

func TableToArray

func TableToArray(L *lua.LState, table *lua.LTable) []any

func TableToMap

func TableToMap(L *lua.LState, table *lua.LTable) map[string]any

func TableToMapAny

func TableToMapAny(L *lua.LState, table *lua.LTable) map[any]any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL