Documentation
¶
Overview ¶
Package redact masks well-known credential-shaped field names before a value is handed to a logger. It is deliberately conservative: only keys whose name indicates a credential are masked, and the original value is never mutated. Callers that log user data should route it through Map first; callers that log their own internal state do not need to.
Index ¶
Constants ¶
View Source
const Placeholder = "[REDACTED]"
Placeholder is the value every masked field becomes. It is exported so tests and downstream sinks can recognize a redacted field without guessing the format.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.