Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeFilename ¶
SanitizeFilename converts a topic string to a safe filename component.
Replaces spaces and special characters with hyphens, converts to lowercase, and limits length to 50 characters. Returns "session" if the input is empty.
Parameters:
- s: Topic string to sanitize
Returns:
- string: Safe filename component (lowercase, hyphenated, max 50 chars)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.