stringcase

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaseCamel  = "camelCase"
	CaseKebab  = "kebab-case"
	CasePascal = "PascalCase"
	CaseSnake  = "snake_case"
)

Variables

This section is empty.

Functions

func IsCamelCase

func IsCamelCase(input string) bool

IsCamelCase returns if a string is camelCase or not.

func IsCase

func IsCase(caseType, s string) (bool, error)

func IsFirstAlphaUpper

func IsFirstAlphaUpper(s string) bool

IsFirstAlphaUpper returns if the first character is a capital [A-Z] character.

func IsPascalCase

func IsPascalCase(input string) bool

IsPascalCase returns if a string is PascalCase or not.

Types

type CaseValidator

type CaseValidator struct{}

Jump to

Keyboard shortcuts

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