Documentation
¶
Index ¶
- Variables
- func As(vm *VM, src Value, value interface{}) error
- func Define(vm *VM, x *Type)
- func GoType(x interface{}) R.Type
- func LoadModule(vm *VM, loader ModuleLoader)
- func VMFunction(vm *VM, name string, v interface{}) error
- func VMValue(vm *VM, name string, v interface{}) error
- type Bool
- type Call
- type Decoder
- type EncodeChecker
- type EncodeError
- type Encoder
- type EncodingFlags
- type Function
- type GFunction
- type Invoker
- type LGFunction
- type Module
- type ModuleLoader
- type ModuleMembers
- type Number
- type String
- type Table
- type TableMapping
- type Type
- type TypeLoader
- type Typed
- type VM
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotSupport = errors.New("type not support") NotSupportFunc = errors.New("function encoding not support") )
View Source
var (
ErrNil = errors.New("nil value")
)
View Source
var (
Nil = lua.LNil
)
View Source
var (
TableMappingClass = R.TypeOf((*TableMapping)(nil)).Elem()
)
Functions ¶
func LoadModule ¶
func LoadModule(vm *VM, loader ModuleLoader)
func VMFunction ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDeocder ¶
func NewDeocder(vm *VM, flags EncodingFlags) *Decoder
type EncodeChecker ¶
type EncodeChecker struct {
// contains filtered or unexported fields
}
func (*EncodeChecker) Encode ¶
func (m *EncodeChecker) Encode(src interface{}) error
type EncodeError ¶
type EncodeError struct {
What error
// contains filtered or unexported fields
}
func (*EncodeError) Error ¶
func (m *EncodeError) Error() string
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(vm *VM, flags EncodingFlags) *Encoder
type EncodingFlags ¶
type EncodingFlags int
const ( FlagSkipMethod EncodingFlags = 0x1 << 1 FlagTyped = 0x1 << 2 )
type Invoker ¶
type LGFunction ¶
type Module ¶
type Module struct {
Name string
Members moduleMembers
// contains filtered or unexported fields
}
type ModuleLoader ¶
type ModuleLoader func() *Module
type ModuleMembers ¶
type ModuleMembers struct {
}
type TableMapping ¶
type TableMapping struct {
}
type TypeLoader ¶
type TypeLoader func() *Type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.