Documentation
¶
Overview ¶
Package env holds the process-wide environment-variable prefix shared by clog's packages, and the "custom prefix first, then CLOG" lookup built on it. Root clog and the theme package both delegate here so the prefix can never desync between them.
Index ¶
Constants ¶
View Source
const DefaultPrefix = "CLOG"
DefaultPrefix is the fallback environment variable prefix.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Lookup reads the environment variable for suffix, checking the custom prefix first and falling back to DefaultPrefix. It returns the value and the name of the variable it came from (the fallback name when neither is set), so callers can reference the right variable in error messages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.