func Error(err error) error
Error redacts potentially sensitive query parameter values in the URL from the error's message.
If the error is a *url.Error, this returns a *url.Error with the URL redacted. Any other error type, or nil, is returned unchanged.
func FromContext(ctx context.Context) (bool, string)
FromContext returns the redaction reason, if any.
func NewContext(ctx context.Context, reason string) context.Context
NewContext creates a new ctx with the reason for redaction.
func URL(u *url.URL) *url.URL
URL redacts potentially sensitive query parameter values from the URL's query string.