Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SmartTruncate ¶
SmartTruncate truncates an input string so it does not exceed maxSize while respecting the "space" character. In case the resulting string is less than 20% of the original, an alternative "non-smart" cut is performed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.