luaHelper

package
v1.5.58 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LuaValueToGoValue

func LuaValueToGoValue(lv lua.LValue) reflect.Value

func LuaValueToInterface

func LuaValueToInterface(lv lua.LValue) interface{}

LuaValueToInterface 将 Lua 值转换为对应的 Go 数据类型

func LuaValueToInterfaceNoTable

func LuaValueToInterfaceNoTable(L *lua.LState, lv lua.LValue) interface{}

LuaValueToInterfaceNoTable 将 Lua 值转换为对应的 Go 数据类型(舍弃table)

func ReadMapSliceFromFile

func ReadMapSliceFromFile(filePath string, dataName string, doCamel bool) (L *lua.LState, mapSlice []map[string]lua.LValue, err error)

ReadMapSliceFromFile 从lua文件中读取数据并转换为[]map[string]interface{} 记得在外面关闭 defer L.Close()

func ReadMapStringSliceFromFile

func ReadMapStringSliceFromFile(filePath string, dataName string, doCamel bool) (L *lua.LState, mapSlice []map[string]string, err error)

ReadMapStringSliceFromFile 从lua文件中读取数据并转换为[]map[string]string 记得在外面关闭 defer L.Close()

Types

This section is empty.

Jump to

Keyboard shortcuts

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