#VARIABLE::GET_RUNNING_CONFIG 1g 22024-02-26 laplante@plcb.ca GOWEB/VARIABLE

title: “GoWeb VARIABLE::GET_RUNNING_CONFIG Function” author: “Pierre Laplante” date: 2025-08-30 version: “1.0.0” section: “1g” module: “Goweb/Variable”


Name

variable::get_runnning_config returns variables that describe the current running configuration of the GoWeb environment.

Synopsis

variable::get_running_config() or simply get_running_config() variable::getRunningConfig() or simply getRunningConfig()

Description

The get_running_config() function returns variables that describe the current running configuration of the GoWeb environment. This includes metadata about the binary, runtime constants, loaded functions, source of execution, and versioning details.

It is particularly useful for debugging, runtime introspection, or dynamically adjusting behavior depending on the execution context.

Examples

res = {
    get_running_config()
}.

might return:

res = {
    "binary": false,
    "binary_version": "goweb-1.0.0",
    "constant": [
        "file::O_SYNC",
        "file::O_TRUNC",
        "file::O_RDONLY",
        "file::O_WRONLY",
        "file::O_RDWR",
        "file::O_APPEND",
        "file::O_CREATE",
        "file::O_EXCL"
    ],
    "current_func": "",
    "file": "/tmp/t",
    "lencode": 88,
    "listfunc": [
        "testcb",
        "date::datetime",
        "time_json",
        ...
    ],
    "source": "cli",
    "timeout": "10s",
    "userfunc": [],
    "version": "0.0.7"
}.

Author

Pierre Laplante laplante@plcb.ca

See Also

Version