Documentation ¶
Index ¶
- func GenRandomVisibleString(length int) string
- func LowerCamelCase(name string) string
- func LowerSnakeCase(name string) string
- func SplitToWords(s string) []string
- func SubStringWithLength(str string, start, length int) string
- func UpperCamelCase(name string) string
- func UpperSnakeCase(name string) string
- type LetterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomVisibleString ¶ added in v1.1.0
func LowerSnakeCase ¶
LowerSnakeCase e.g. i_am_a_10_years_senior
func SplitToWords ¶
func SubStringWithLength ¶
func UpperSnakeCase ¶
UpperSnakeCase e.g. I_AM_A_10_YEARS_SENIOR
Types ¶
type LetterType ¶
type LetterType int
const ( LowerLetter LetterType = iota + 1 UpperLetter Digit Other )
func CheckLetterType ¶
func CheckLetterType(c rune) LetterType
func (LetterType) IsDigit ¶
func (t LetterType) IsDigit() bool
func (LetterType) IsLetter ¶
func (t LetterType) IsLetter() bool
func (LetterType) IsOther ¶
func (t LetterType) IsOther() bool
Click to show internal directories.
Click to hide internal directories.