Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CachedLoadedTable ¶
CachedLoadedTable returns the package.loaded.name table.
func CallPackageFunc ¶
func CallPackageFunc(t *rt.Thread, modname string, funcname string, arg ...rt.Value) ([]rt.Value, error)
CallPackageFunc calls the function "modname.funcname" with the given arguments. The module modname will be loaded into the runtime via require.
func LoadedTable ¶
LoadedTable returns the package.loaded table.
func Require ¶
Require loads the given module. The function starts by looking into the package.loaded table to determine whether modname is already loaded. If it is, then require returns the value stored at package.loaded[modname]. Otherwise, it tries to find a loader for the module. See the documentation for the Lua "require" function for details.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.