title: “GoWeb VARIABLE::RUNTIME Function” author: “Pierre Laplante” date: 2025-08-30 version: “1.0.0” section: “1g”
variable::runtime returns information about the GoWeb runtime environment.
variable::runtime() or simply runtime()
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.
res = {
runtime()
}.
might return:
res = {
"Compiler": "gc",
"GOARCH": "arm64",
"GOOS": "darwin",
"NumCPU": 12
}.
Pierre Laplante laplante@plcb.ca