stringcase

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CamelCase  = "camelCase"
	KebabCase  = "kebab-case"
	PascalCase = "PascalCase"
	SnakeCase  = "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 IsKebabCase added in v0.0.25

func IsKebabCase(input string) bool

func IsPascalCase

func IsPascalCase(input string) bool

IsPascalCase returns if a string is PascalCase or not.

func IsSnakeCase added in v0.0.25

func IsSnakeCase(input string) bool

func Parse added in v0.25.3

func Parse(s string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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