Documentation ¶
Overview ¶
Package stringutil adds functions for working with strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Left ¶
Left returns the "n" left characters of the string.
If the string is shorter than "n" it will return the first "n" characters of the string with "…" appended. Otherwise the entire string is returned as-is.
func LowerFirst ¶
LowerFirst transforms the first character to lower case, leaving the rest of the casing alone.
func RemoveUnprintable ¶
RemoveUnprintable removes unprintable characters (0 to 31 ASCII) from a string.
func UpperFirst ¶
UpperFirst transforms the first character to upper case, leaving the rest of the casing alone.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.