Documentation
¶
Index ¶
- func FirstCharacterIsLower(s string) bool
- func FirstCharacterIsNumber(s string) bool
- func FirstCharacterIsSymbol(s string) bool
- func FirstCharacterIsUpper(s string) bool
- func Length(s string) int
- func PaddingPrefix(s, padding string, length int) string
- func PaddingSuffix(s, padding string, length int) string
- func Replace(str string, start, count int, replace string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstCharacterIsLower ¶
FirstCharacterIsLower reports whether the first character of s is a lower-case letter.
func FirstCharacterIsNumber ¶
FirstCharacterIsNumber reports whether the first character of s is a digit.
func FirstCharacterIsSymbol ¶
FirstCharacterIsSymbol reports whether the first character of s is a symbol.
func FirstCharacterIsUpper ¶
FirstCharacterIsUpper reports whether the first character of s is an upper-case letter.
func PaddingPrefix ¶ added in v2.1.0
PaddingPrefix prepends padding to s until the result reaches length characters. Lengths are counted in runes. It returns s unchanged when s already has at least length characters or when padding is empty.
func PaddingSuffix ¶ added in v2.1.0
PaddingSuffix appends padding to s until the result reaches length characters. Lengths are counted in runes. It returns s unchanged when s already has at least length characters or when padding is empty.
Types ¶
This section is empty.