lua

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	LuaTableError = "lua script output is not a lua table"
	LuaBoolError  = "lua script output is not a lua bool"
)

Variables

This section is empty.

Functions

func LoadModulesAndRegisterMethods

func LoadModulesAndRegisterMethods(l *lua.LState)

func MapToTable

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

MapToTable converts a Go map to a lua table credit to: https://github.com/yuin/gopher-lua/issues/160#issuecomment-447608033

func ToGoValue

func ToGoValue(lv lua.LValue) any

ToGoValue converts the given LValue to a Go object. Credit to: https://github.com/yuin/gluamapper/blob/master/gluamapper.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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