go2lua

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package go2lua converts between go and Lua data structures

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ls *lua.LState, v interface{}) lua.LValue

Export takes an input Go interface and converts it to a Lua value

func Import

func Import(ls *lua.LState, lv lua.LValue, v, orig interface{}) (err error)

Import takes a Lua value and copies matching values into the provided Go interface. By providing the orig interface, values that cannot be imported from Lua will be copied from orig.

Types

This section is empty.

Jump to

Keyboard shortcuts

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