Documentation
¶
Overview ¶
Package trace provides helpers to format values for protocol trace output.
Index ¶
Constants ¶
View Source
const RedactedText = "xxxxx"
RedactedText is the placeholder text replacing credentials in redacted output. Kept consistent with net/url.URL.Redacted, whose "xxxxx" literal is unexported.
Variables ¶
This section is empty.
Functions ¶
func Cut ¶ added in v1.18.5
Cut formats value for a trace output. Strings are cut by runes and byte slices by bytes once they exceed limit. The "(n)" suffix reports the length of the value before cutting.
func Redact ¶ added in v1.18.5
func Redact() bool
Redact reports whether credential redaction in trace output is enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.