Documentation
¶
Overview ¶
Package log is a thin wrapper around log/slog that writes structured logs to stderr. Use Warn/Error for actionable issues; Info for startup banners and status lines. Also provides Close helper for safe resource cleanup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
Close closes c and writes a warning to stderr on error. name identifies the resource in the log message. Use for deferred Close() calls where the error is not actionable (best-effort cleanup).
func CloseSimple ¶
func CloseSimple(name string, c interface{ Close() })
CloseSimple is like Close but for types whose Close method returns nothing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.