Documentation ¶
Overview ¶
Package strutil is the common sin of every Go programmer. It contains utility functions around strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstLower ¶
FirstLower returns a copy of s, where the first rune is guaranteed to be a lowercase letter, like unicode.ToLower suggests.
func FirstUpper ¶
FirstUpper returns a copy of s, where the first rune is guaranteed to be an uppercase letter, like unicode.ToUpper suggests.
func RandomString ¶
RandomString generates a random string with len n using the crypto/rand RNG. The returned string contains only chars defined in the randStrChars constant.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.