validation

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeFilename

func SanitizeFilename(s string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL