Documentation
¶
Index ¶
Constants ¶
View Source
const ( RedactedSecret = "[REDACTED]" CircularReference = "[Circular]" )
Variables ¶
This section is empty.
Functions ¶
func ErrorMessage ¶
func IsSensitiveKey ¶
func RedactString ¶
func RedactValue ¶
Types ¶
type RedactedError ¶
type RedactedError struct {
Name string `json:"name"`
Message string `json:"message"`
Stack string `json:"stack,omitempty"`
Fields map[string]any `json:"fields,omitempty"`
}
func RedactError ¶
func RedactError(err error, options Options) RedactedError
Click to show internal directories.
Click to hide internal directories.