Documentation ¶
Index ¶
- Variables
- func GenRandomVisibleStringV1(length int, excluded ...byte) string
- func GenRandomVisibleStringV2(n int, excluded ...byte) string
- func LowerCamelCase(name string) string
- func LowerSnakeCase(name string) string
- func SplitToWords(s string) []string
- func UpperCamelCase(name string) string
- func UpperSnakeCase(name string) string
- type LetterType
Constants ¶
This section is empty.
Variables ¶
View Source
var GenRandomVisibleString = GenRandomVisibleStringV2
Functions ¶
func GenRandomVisibleStringV1 ¶ added in v1.4.0
func GenRandomVisibleStringV2 ¶ added in v1.4.0
func LowerSnakeCase ¶
LowerSnakeCase e.g. i_am_a_10_years_senior
func SplitToWords ¶
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.