package
0.2.2
Repository: https://github.com/bigjk/end_of_eden.git
Documentation: pkg.go.dev

# README

luhelp

This is the lua helper layer that exposes functions to

  • Map go values to lua ones
  • Map lua values to go ones
  • Bind lua functions to go functions

Naming Conventions

To conform to the naming conventions of both languages, go structs and map keys are converted to snake_case and lua table keys will be converted to CamelCase when passing data.

# Functions

BindToLua will create a OwnedCallback from a lua function and state.
NewMapper returns a new mapper bound to a lua state.
ToGoValue converts the given LValue to a Go object.
ToLua converts a go value to a lua value.
ToString converts a lua value to a string.

# Constants

No description provided by the author

# Structs

Mapper maps a lua table to a Go struct pointer.
Option is a configuration that is used to create a new mapper.

# Type aliases

OwnedCallback represents a callback that will execute inside a lua vm.