Package wcwidth provides utilities for determining the column width of characters when displayed on the terminal.
Force forces the string s to the given column width by trimming and padding.
Of returns the column width of a string, assuming no soft line breaks.
OfRune returns the column width of a rune.
Override overrides the column width of a rune to be a specific non-negative value. It panics if w < 0.
Trim trims the string s so that it has a column width of at most wmax.
TrimEachLine trims each line of s so that it is no wider than the specified width.
Unoverride removes the column width override of a rune.