Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶ added in v1.1.6
CopyDir recursively copies a directory tree from src to dst, preserving file modes and symlinks.
func SanitizeForLog ¶
SanitizeForLog sanitizes a string for safe logging by removing or escaping control characters that could cause log injection attacks. The optional maxLength parameter controls truncation (default: 100). Pass 0 or negative to disable truncation. TODO: Consider migrating to structured logging which handles sanitization automatically through field encoding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.