VARIABLE::RUNTIME 1g 2023-12-28 laplante@plcb.ca GOWEB/VARIABLE


title: “GoWeb VARIABLE::RUNTIME Function” author: “Pierre Laplante” date: 2025-08-30 version: “1.0.0” section: “1g”

module: Goweb/Variable”

Name

variable::runtime returns information about the GoWeb runtime environment.

Synopsis

variable::runtime() or simply runtime()

Description

The runtime() function returns information about the GoWeb runtime environment.
It provides details about the compiler, target architecture, operating system, and CPU resources available.

This function is particularly useful for debugging, system diagnostics, or adapting behavior depending on the runtime platform.

Examples

res = {
    runtime()
}.

might return:

res = {
    "Compiler": "gc",
    "GOARCH": "arm64",
    "GOOS": "darwin",
    "NumCPU": 12
}.

Author

Pierre Laplante laplante@plcb.ca

See Also

Version