Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes is a convenience wrapper over String. It returns the original slice on the no-op path.
func ForceInitError ¶
func ForceInitError(forcedErr error) (cleanup func())
ForceInitError makes subsequent String and Bytes calls fail until the returned cleanup function restores the default detector factory.
func SanitizeURL ¶
SanitizeURL strips embedded credentials (userinfo), query strings, and fragments from a URL while preserving the scheme, host, and path for identity matching. Non-URL strings and SSH-style URLs pass through unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.