stringsx

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRandomVisibleString added in v1.1.0

func GenRandomVisibleString(length int) 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