core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 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 interface{}) error

func MapToLTable

func MapToLTable(L *lua.LState, m interface{}) *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 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