Documentation
¶
Index ¶
- func Call(state *lua.LState, fn lua.LValue, args ...any) error
- func CallWithResult(state *lua.LState, fn lua.LValue, args ...any) (lua.LValue, error)
- func CompileLuaFiles(luaPath string)
- func InitLuaPathAndCompile(luaPath string, compile bool)
- func IsCompiled(luaName string) bool
- func IsLuaFunction(fn lua.LValue) bool
- type LuaEngine
- func (e *LuaEngine) Close()
- func (e *LuaEngine) DoLuaFile(luaFile string) error
- func (e *LuaEngine) DoLuaMethod(luaFile string, method string, args ...any) error
- func (e *LuaEngine) DoLuaMethodWithResult(luaFile string, method string, args ...any) (lua.LValue, error)
- func (e *LuaEngine) DoLuaString(luaCode string) error
- func (e *LuaEngine) LoadGopherLuaLibs()
- func (e *LuaEngine) LoadModule(module string, loader func(L *lua.LState) int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallWithResult ¶
func CompileLuaFiles ¶
func CompileLuaFiles(luaPath string)
func InitLuaPathAndCompile ¶
func IsLuaFunction ¶
Types ¶
type LuaEngine ¶
func NewLuaEngine ¶
func NewLuaEngine() *LuaEngine
func (*LuaEngine) DoLuaMethod ¶
DoLuaMethod call a func in luaFile
func (*LuaEngine) DoLuaMethodWithResult ¶
func (*LuaEngine) DoLuaString ¶
func (*LuaEngine) LoadGopherLuaLibs ¶
func (e *LuaEngine) LoadGopherLuaLibs()
LoadGopherLuaLibs gopher-lua-libs
Click to show internal directories.
Click to hide internal directories.