stringsx

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenRandomVisibleString = GenRandomVisibleStringV2

Functions

func GenRandomVisibleStringV1 added in v1.4.0

func GenRandomVisibleStringV1(length int, excluded ...byte) string

func GenRandomVisibleStringV2 added in v1.4.0

func GenRandomVisibleStringV2(n int, excluded ...byte) string

func LowerCamelCase

func LowerCamelCase(name string) string

LowerCamelCase e.g. iAmA10YearsSenior

func LowerSnakeCase

func LowerSnakeCase(name string) string

LowerSnakeCase e.g. i_am_a_10_years_senior

func SplitToWords

func SplitToWords(s string) []string

func UpperCamelCase

func UpperCamelCase(name string) string

UpperCamelCase e.g. IAmA10YearsSenior

func UpperSnakeCase

func UpperSnakeCase(name string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL