Documentation ¶
Overview ¶
Package binder allows to easily bind to Lua. Based on https://github.com/yuin/gopher-lua
Write less, do more.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct {
// contains filtered or unexported fields
}
Argument is a call function argument
func (*Argument) Any ¶
func (a *Argument) Any() interface{}
Any returns function argument as interface{}
func (*Argument) Data ¶
func (a *Argument) Data() interface{}
Data checks if function argument is UserData and return it
type Binder ¶
type Binder struct { *Loader // contains filtered or unexported fields }
Binder is a binder... that's all
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context function context
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader is basic loader object
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module is a lua module wrapper
type Options ¶
type Options struct { // CallStackSize is call stack size CallStackSize int // RegistrySize is data stack size RegistrySize int // SkipOpenLibs controls whether or not libraries are opened by default SkipOpenLibs bool // IncludeGoStackTrace tells whether a Go stacktrace should be included in a Lua stacktrace when panics occur. IncludeGoStackTrace bool }
Options binder options object
type Push ¶
type Push struct {
// contains filtered or unexported fields
}
Push function result wrapper
Click to show internal directories.
Click to hide internal directories.