runtime

package
v0.0.0-...-23e27bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOARCH

func GOARCH(L *lua.LState) int

GOARCH lua runtime.goarch() return string

func GOOS

func GOOS(L *lua.LState) int

GOOS lua runtime.goos() return string

func Loader

func Loader(L *lua.LState) int

Loader is the module loader function.

func Preload

func Preload(L *lua.LState)

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")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL