Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBool ¶
ToBool converts a Lua value to a Go bool. Uses Lua's boolean semantics (only nil and false are false).
func ToGoValue ¶
ToGoValue converts a Lua value to the best associated Go type. This is the primary function for Lua → Go conversion.
Based on dragon-mud's AsRaw pattern: - LTString → string - LTBool → bool - LTNil → nil - LTNumber → float64 - LTTable → map[string]any or []any (based on structure)
func ToLuaValue ¶
ToLuaValue converts a Go value to a Lua value. This is the primary function for Go → Lua conversion. Supports primitives, maps, slices, and nested structures.
Inspired by dragon-mud's getLValue and ValueFor pattern.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.