EXCEPTION::LOGERR 1g 2025-09-11 laplante@plcb.ca GOWEB/EXCEPTION


title: “EXCEPTION::LOGERR” author: “laplante@plcb.ca” date: “2025-09-11” version: “1.0.1”

caregory: “GOWEB/EXCEPTION”

Name

exception::logerr — print a formatted message to stderr (CLI) or error logfile (Web)

Synopsis

Description

This function is the equivalent of Golang printf.

The format string supports the following verbs:

General

Boolean

Integer

Floating-point and complex

String

Pointer

Defaults

Width & Precision

Flags

Examples

res={{
    a := [1, 2.2, "3"];
    logerr("%!T(MISSING) %!T(MISSING) %!T(MISSING)\n", a);
}}.

Return:

res=int64 float64 string

res={{
    a := [1, 2.2, "3", [1,2,3]];
    logerr("%!T(MISSING) %!T(MISSING) %!T(MISSING) %!T(MISSING)\n", a);
}}.

Return:

res=int64 float64 string int64
%!!(MISSING)(EXTRA int64=2, int64=3).

Author

See also

Version