Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger writes verbose diagnostic messages when Enabled is true. Output goes to the configured writer (typically stderr).
Printf is safe for concurrent use: the parallel lint pipeline can reach a shared logger from many goroutines, and not every io.Writer (e.g. bytes.Buffer) is itself thread-safe. mu serializes the format + write so lines are never torn or dropped. Always use *Logger; copying a Logger value would copy the mutex.
Click to show internal directories.
Click to hide internal directories.