Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigFileReadLimit int64 = 96 << 10
DefaultConfigFileReadLimit caps typical config file reads (web server snippets, logrotate, cron, etc.).
Variables ¶
This section is empty.
Functions ¶
func CollectionNote ¶
CollectionNote returns a stable human-readable reason (max ~512 chars for schema).
func EnvLocaleC ¶
func EnvLocaleC() []string
EnvLocaleC forces C locale for deterministic CLI output parsing.
func ReadFileBounded ¶ added in v0.4.0
ReadFileBounded reads at most maxBytes from path (regular file open).
func ScanContextError ¶ added in v0.4.0
ScanContextError returns ctx.Err() when ctx is non-nil and done.
func TruncateRunes ¶
TruncateRunes truncates to at most max runes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.