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 PreloadModule ¶
func PreloadModule(name string, f lua.LGFunction)
Types ¶
type GenericMap ¶
type GenericMap map[interface{}]interface{}
map[interface{}]interface{} to json map[1:1 2:2] to [1,2]
func (GenericMap) MarshalJSON ¶
func (m GenericMap) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.