Documentation
¶
Overview ¶
Package stringsx provides the string and flagset helpers shared by the packages of this module.
Index ¶
Constants ¶
const DefaultFlagSetName = "default"
DefaultFlagSetName is the name of the flagset used when none is given.
Variables ¶
This section is empty.
Functions ¶
func StringToArray ¶
StringToArray is a helper function to convert a slice of strings.
func TruncateRunes ¶ added in v1.3.0
TruncateRunes returns text when it has at most limit characters, and otherwise its first limit-1 characters and an ellipsis, so that the result has limit characters. The cut is on characters, never inside one.
Types ¶
This section is empty.