stringsx

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) (int, error)

func LowerCamelCase

func LowerCamelCase(name string) string

LowerCamelCase e.g. iAmA10YearsSenior

func LowerDashJoint

func LowerDashJoint(name string) string

LowerDashJoint e.g. i-am-a-10-years-senior

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

Jump to

Keyboard shortcuts

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