Versions in this module Expand all Collapse all v0 v0.2.1 May 6, 2020 Changes in this version + func EnvGetArgs(l *lua.State) int + func EnvGetEnv(l *lua.State) int v0.2.0 May 3, 2020 Changes in this version + const EReadonly + const EnvKey + var BaseLibs map[string]LuaFile + func DeepPush(l *lua.State, v interface{}) int + func LoadFile(l *lua.State, fileName, mode string) error + func LoadLuaFile(l *lua.State, f LuaFile) error + func MustPullVarargs(l *lua.State, startIndex int) []interface + func PackageOpen(l *lua.State) int + func Parse(l *lua.State) int + func ParseJson(l *lua.State) int + func PullStringTable(l *lua.State, idx int) (map[string]string, error) + func PullTable(l *lua.State, idx int) (interface{}, error) + func PullVarargs(l *lua.State, startIndex int) ([]interface{}, error) + func Repr(l *lua.State) int + func ReprJson(l *lua.State) int + func ScanLibs(libDir string) (map[string]LuaFile, error) + func SetEnvironment(l *lua.State, environment *Environment) + func SyscallOpen(l *lua.State) int + type Environment struct + Args []string + Context context.Context + Env map[string]string + Fs Filesystem + GoLibs []lua.RegistryFunction + Input io.Reader + Log Log + LuaLibs map[string]LuaFile + Output WriteSyncer + PreInitLua []LuaFile + func GetEnvironment(l *lua.State) (*Environment, error) + func (e *Environment) Init() (*lua.State, error) + type FileInfo struct + ETag string + IsDir bool + LastModified time.Time + Name string + SelfUrl string + Size uint64 + type Filesystem interface + Delete func(path string) error + GetReader func(file string) (io.ReadCloser, error) + GetWriter func(file string) (io.WriteCloser, error) + List func(path string) ([]FileInfo, error) + type FsError string + func (e FsError) Error() string + type Log interface + Debug func(msg string, context map[string]interface{}) + Error func(msg string, context map[string]interface{}) + Fatal func(msg string, context map[string]interface{}) + Info func(msg string, context map[string]interface{}) + Warn func(msg string, context map[string]interface{}) + WithFields func(context map[string]interface{}) Log + type LuaFile struct + Code string + Name string + type VFS struct + BaseFs Filesystem + Prefixes map[string]Filesystem + func (vfs *VFS) Delete(file string) error + func (vfs *VFS) GetReader(file string) (io.ReadCloser, error) + func (vfs *VFS) GetWriter(file string) (io.WriteCloser, error) + func (vfs *VFS) List(file string) ([]FileInfo, error) + type WriteSyncer interface + Sync func() error