Documentation
¶
Overview ¶
Package strutil provides various utilities for manipulating strings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join joins the list of the string with the delim provided. Returns an empty string for empty list
func PadLeft ¶
PadLeft returns a new string of a specified length in which the beginning of the current string is padded with spaces or with a specified Unicode character.
func PadRight ¶
PadRight returns a new string of a specified length in which the end of the current string is padded with spaces or with a specified Unicode character.
func Resize ¶
Resize resizes the string with the given length. It ellipses with '...' when the string's length exceeds the desired length or pads spaces to the right of the string when length is smaller than desired
func StringWidth ¶ added in v0.0.2
StringWidth returns the actual width of the string without colors
Types ¶
This section is empty.