Documentation ¶
Index ¶
- func IsCamelCase(s string) bool
- func IsChainCase(s string) bool
- func IsFlatCase(s string) bool
- func IsKebabCase(s string) bool
- func IsPascalCase(s string) bool
- func IsSnakeCase(s string) bool
- func IsUpperCase(s string) bool
- func ToCamelCase(s string) string
- func ToChainCase(s string) string
- func ToFlatCase(s string) string
- func ToKebabCase(s string) string
- func ToPascalCase(s string) string
- func ToSnakeCase(s string) string
- func ToUpperCase(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCamelCase ¶
IsCamelCase check whether string is camelCase style or not. true: string is camel case, false: other. If first character is digit, always returns false
func IsChainCase ¶
IsChainCase check whether string is chain-case style. true: string is chain case, false: other
func IsFlatCase ¶
IsFlatCase check whether string is flatcase style or not. true: string is flat case, false: other. If first character is digit, always returns false
func IsKebabCase ¶
IsKebabCase check whether string is kebab-case style. It's same as IsChainCase(). true: string is chain case, false: other
func IsPascalCase ¶
IsPascalCase check whether string is PascalCase style or not. true: string is pascal case, false: other. If first character is digit, always returns false
func IsSnakeCase ¶
IsSnakeCase check whether string is snake_case style or not. true: string is snake case, false: other
func IsUpperCase ¶
IsUpperCase check whether string is UPPER_CASE style or not. true: string is flat case, false: other.
func ToCamelCase ¶
ToCamelCase convert string to camelCase style. If argument is empty, return itself
func ToChainCase ¶
ToChainCase convert string to chain-case style. If argument is empty, return itself.
func ToFlatCase ¶
ToFlatCase convert string to flatcase style. If argument is empty, return itself
func ToKebabCase ¶
ToKebabCase convert string to kebab-case style. It's same as ToChainCase(). If argument is empty, return itself.
func ToPascalCase ¶
ToPascalCase convert string to PascalCase style. If argument is empty, return itself
func ToSnakeCase ¶
ToSnakeCase convert string to snake_case style. If argument is empty, return itself.
func ToUpperCase ¶
ToUpperCase convert string to UPPER_CASE style. If argument is empty, return itself.
Types ¶
This section is empty.