Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TruncateToLines ¶
TruncateToLines truncates text to a maximum number of lines with proper word wrapping. The last line will be truncated with "..." if it exceeds the limit.
func TruncateWithWidth ¶
TruncateWithWidth truncates text to fit within maxWidth, accounting for Unicode character widths. Adds "..." if the text is truncated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.