Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitTrimCompact ¶
SplitTrimCompact splits strings by sep, trims whitespace, and drops empty items. Commonly used for parsing comma-separated configs like "a, b, ,c,".
func TrimCompact ¶
TrimCompact trims whitespace and drops empty items in a string slice.
func TruncateRunes ¶
TruncateRunes truncates s to at most max runes. Truncation is rune-based, not byte-based: slicing bytes can split a multi-byte UTF-8 character, producing invalid sequences that MySQL/PostgreSQL reject on insert — stacks containing CJK text or emoji would then never reach the database.
Types ¶
This section is empty.