Documentation ¶
Index ¶
- Variables
- func GetFileName(L *lua.LState) (string, bool)
- func JSON(v interface{}) *jsonArg
- func LoadLocalScriptByName(dir, name string) error
- func LoadLocalScripts(dir string) error
- func LoadScripts(path string) error
- func PreloadModule(name string, f lua.LGFunction)
- type GenericMap
- type Result
- type Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnkownType = errors.New("unknow lua type") ErrInvalidFile = errors.New("script file not exist") )
Functions ¶
func LoadLocalScriptByName ¶
Depercated: use LoadScripts instead
func LoadScripts ¶ added in v1.4.17
遇到脚本引入模块路径查找失败问题 简化设计,移除脚本压缩包加载支持
func PreloadModule ¶
func PreloadModule(name string, f lua.LGFunction)
Types ¶
type GenericMap ¶ added in v1.3.1
type GenericMap map[interface{}]interface{}
map[interface{}]interface{} to json map[1:1 2:2] to [1,2]
func (GenericMap) MarshalJSON ¶ added in v1.3.1
func (m GenericMap) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.