Documentation
¶
Index ¶
- func Any(value any, redact func(string) string) any
- func AnyMap(values map[string]any, redact func(string) string)
- func AnyMapCopy(values map[string]any, redact func(string) string) map[string]any
- func AnySlice(values []any, redact func(string) string)
- func RawJSON(raw json.RawMessage, redact func(string) string) json.RawMessage
- func StringMap(values map[string]string, redact func(string) string)
- func StringMapCopy(values map[string]string, redact func(string) string) map[string]string
- func StringSlice(values []string, redact func(string) string)
- func StringSliceCopy(values []string, redact func(string) string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any ¶
Any redacts supported JSON-shaped values and returns redacted copies for maps and slices.
func AnyMapCopy ¶
AnyMapCopy returns a redacted JSON-shaped map without mutating the input map.
func RawJSON ¶
func RawJSON(raw json.RawMessage, redact func(string) string) json.RawMessage
RawJSON decodes, redacts, and re-encodes JSON while falling back to whole-string redaction.
func StringMapCopy ¶
StringMapCopy returns a redacted string map without mutating the input map.
func StringSlice ¶
StringSlice redacts every string element in place.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.