Documentation ¶
Index ¶
- func ConvertLuaTable(lv *lua.LTable) map[string]interface{}
- func ConvertLuaValue(lv lua.LValue) interface{}
- func ConvertMap(l *lua.LState, data map[string]interface{}) *lua.LTable
- func Marshal(b []byte, lv lua.LValue) []byte
- func OpenOsRuntime(L *lua.LState) int
- func UnMarshal(b []byte, l *lua.LState) (lua.LValue, []byte)
- type LNumber
- type LState
- type LTable
- type LValue
- type LuaRuntime
- func (this *LuaRuntime) DoFile(path string)
- func (this *LuaRuntime) GetGlobal(f string) LValue
- func (this *LuaRuntime) GetVm() *LState
- func (this *LuaRuntime) PCall(f string, args ...interface{})
- func (this *LuaRuntime) PCall2(f string, args ...LValue)
- func (this *LuaRuntime) PCall3(f LValue, args ...LValue)
- func (this *LuaRuntime) RegisterFunction(s string, f func(*lua.LState) int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLuaTable ¶
func ConvertLuaTable(lv *lua.LTable) map[string]interface{}
func ConvertLuaValue ¶
func ConvertLuaValue(lv lua.LValue) interface{}
func ConvertMap ¶
func ConvertMap(l *lua.LState, data map[string]interface{}) *lua.LTable
func OpenOsRuntime ¶
func OpenOsRuntime(L *lua.LState) int
Types ¶
type LuaRuntime ¶
type LuaRuntime struct {
// contains filtered or unexported fields
}
func NewLuaStae ¶
func NewLuaStae() *LuaRuntime
func (*LuaRuntime) DoFile ¶
func (this *LuaRuntime) DoFile(path string)
func (*LuaRuntime) GetGlobal ¶
func (this *LuaRuntime) GetGlobal(f string) LValue
func (*LuaRuntime) GetVm ¶
func (this *LuaRuntime) GetVm() *LState
func (*LuaRuntime) PCall ¶
func (this *LuaRuntime) PCall(f string, args ...interface{})
func (*LuaRuntime) PCall2 ¶
func (this *LuaRuntime) PCall2(f string, args ...LValue)
func (*LuaRuntime) PCall3 ¶
func (this *LuaRuntime) PCall3(f LValue, args ...LValue)
func (*LuaRuntime) RegisterFunction ¶
func (this *LuaRuntime) RegisterFunction(s string, f func(*lua.LState) int)
Click to show internal directories.
Click to hide internal directories.