Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultHTTPTimeout is used for API calls (validation, sync uploads, etc.) DefaultHTTPTimeout = 30 * time.Second )
HTTP client timeouts
Variables ¶
This section is empty.
Functions ¶
func TruncateEnd ¶
TruncateEnd shortens a string for display by keeping the beginning and adding ellipsis at the end if it exceeds maxLen
func TruncateSecret ¶
TruncateSecret safely truncates a secret string for display. Returns a string like "abc123...wxyz" showing prefix and suffix. If the string is too short, or prefixLen/suffixLen are negative, returns a masked version rather than panicking on an out-of-range slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.