core

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(b []byte) string

func LTableToMap

func LTableToMap(tbl *lua.LTable) map[string]any

func LTableToStrut

func LTableToStrut(tbl *lua.LTable, out any) error

func MapToLTable

func MapToLTable(L *lua.LState, m any) *lua.LTable

func NewUserData

func NewUserData(L *lua.LState, obj LValueObject) *lua.LUserData

func RegisterMetatable

func RegisterMetatable(L *lua.LState, mtName string)

func S2B

func S2B(s string) (b []byte)

func SliceMapToLTable added in v0.4.0

func SliceMapToLTable(L *lua.LState, slice []map[string]any) *lua.LTable

func SubModIndex

func SubModIndex(L *lua.LState, key string, objs ...LValueObject) lua.LValue

Types

type LValueObject

type LValueObject interface {
	String() string
	AssertFunction() lua.LGFunction
	MetatableName() string
	Index(L *lua.LState, key string) lua.LValue
}

Jump to

Keyboard shortcuts

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