Documentation
¶
Overview ¶
Package debug provides the SMPLKIT_DEBUG diagnostic facility. It is an internal package and must not be imported by external packages.
Set SMPLKIT_DEBUG=1 (or "true" / "yes") to enable verbose output to stderr. All other values (including unset) disable output. The environment variable is read once at package init time and cached; changes after startup are not observed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
Debug writes a single diagnostic line to stderr when debug output is enabled. It is a no-op when disabled and is safe to call from any goroutine.
Output format: [smplkit:{subsystem}] {RFC3339Nano timestamp} {message}\n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.