Documentation
¶
Overview ¶
Package urlsanitizer provides utilities for sanitizing URLs and DSNs by removing sensitive information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeURL ¶
SanitizeURL removes user credentials from URLs for safe logging. It uses Go's built-in url.Redacted() when possible, which preserves usernames but redacts passwords. If the URL can't be parsed but appears to contain credentials, it's fully redacted for security.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.