util

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in v0.4.0

func Check[T any](state *lua.LState, n int) T

func FromLTable

func FromLTable(table *lua.LTable) (map[string]any, error)

func FromLValue

func FromLValue(value lua.LValue) (any, error)

func NewTable

func NewTable(L *lua.LState, fields map[string]lua.LValue, funcs map[string]lua.LGFunction) *lua.LTable

func Push added in v0.4.0

func Push[T any](state *lua.LState, t T, typeName string)

func ToLValue

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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