Discover Packages
github.com/luevano/mangal-lua-libs
runtime
package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jun 2, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
runtime
Lua module for runtime .
Usage
local runtime = require("runtime")
if not(runtime.goos() == "linux") then error("not linux") end
if not(runtime.goarch() == "amd64") then error("not amd64") end
Expand ▾
Collapse ▴
Documentation
¶
Package runtime implements golang runtime functionality for lua.
GOARCH lua runtime.goarch() return string
GOOS lua runtime.goos() return string
Loader is the module loader function.
Preload adds runtime to the given Lua state's package.preload table. After it
has been preloaded, it can be loaded using require:
local runtime = require("runtime")
Source Files
¶
Click to show internal directories.
Click to hide internal directories.