Documentation
¶
Index ¶
- type InputReader
- type LuaLoader
- func (ll *LuaLoader) BuildEnv()
- func (ll *LuaLoader) Close()
- func (ll *LuaLoader) Code(code string) error
- func (ll *LuaLoader) DoFile(path string) error
- func (ll *LuaLoader) File(path string) error
- func (ll *LuaLoader) Function(file io.Reader, name string, params ...lua.LValue) error
- func (ll *LuaLoader) LoadAllStdLibs()
- func (ll *LuaLoader) LoadStdLibs(exp []string) error
- func (ll *LuaLoader) SetGlobalVar(n string, v lua.LValue)
- func (ll *LuaLoader) Test(file io.Reader) error
- func (ll *LuaLoader) TestFile(path string) error
- type LuaLog
- type OutputWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LuaLoader ¶
type LuaLoader struct {
State *lua.LState
Input io.Reader
Output io.Writer
Log *LuaLog
EnvMap map[string]lua.LValue
// contains filtered or unexported fields
}
LuaLoader ... Simple loader system
func NewLuaLoader ¶
NewLuaLoader ... creates a new LuaLoader
func (*LuaLoader) BuildEnv ¶
func (ll *LuaLoader) BuildEnv()
BuildEnv ... Initializes the environment needed
func (*LuaLoader) LoadAllStdLibs ¶
func (ll *LuaLoader) LoadAllStdLibs()
LoadAllStdLibs ... Wrapper around exposing all the OpenLibs()
func (*LuaLoader) LoadStdLibs ¶
LoadStdLibs ... Provide a list of libraries that are part of the standard library
func (*LuaLoader) SetGlobalVar ¶
SetGlobalVar ... Push into environment
Click to show internal directories.
Click to hide internal directories.