Documentation ¶
Index ¶
- Constants
- func CaseKebabToCamel(s string) string
- func CaseKebabToPascal(s string) string
- func CaseKebabToSnake(s string) string
- func CaseSnakeToCamel(s string) string
- func CaseSnakeToKebab(s string) string
- func CaseSnakeToPascal(s string) string
- func IsCamelCase(input string) bool
- func IsCase(caseType, s string) (bool, error)
- func IsFirstAlphaUpper(s string) bool
- func IsKebabCase(input string) bool
- func IsPascalCase(input string) bool
- func IsSnakeCase(input string) bool
- func Parse(s string) (string, error)
- func ToCamelCase(s string) string
- func ToPascalCase(s string) string
Constants ¶
View Source
const ( CamelCase = "camelCase" KebabCase = "kebab-case" PascalCase = "PascalCase" SnakeCase = "snake_case" )
Variables ¶
This section is empty.
Functions ¶
func CaseKebabToCamel ¶ added in v0.26.2
func CaseKebabToPascal ¶ added in v0.26.2
func CaseKebabToSnake ¶ added in v0.26.2
func CaseSnakeToCamel ¶ added in v0.26.2
func CaseSnakeToKebab ¶ added in v0.26.2
func CaseSnakeToPascal ¶ added in v0.26.2
func IsCamelCase ¶
IsCamelCase returns if a string is camelCase or not.
func IsFirstAlphaUpper ¶
IsFirstAlphaUpper returns if the first character is a capital [A-Z] character.
func IsKebabCase ¶ added in v0.0.25
func IsPascalCase ¶
IsPascalCase returns if a string is PascalCase or not.
func IsSnakeCase ¶ added in v0.0.25
func ToCamelCase ¶ added in v0.26.2
ToCamelCase converts a string to camel case as `camelCase`.
func ToPascalCase ¶ added in v0.26.2
ToPascalCase converts a string to Pascal case as `PascalCase`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.