Documentation ¶
Overview ¶
Provide convert functions (string => snake_case, chain-case, camelCase, PascalCase).
Index ¶
- func IsCamelCase(s string) bool
- func IsChainCase(s string) bool
- func IsFlatCase(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 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 ¶
If argument is camelCase style string, return true. If first character is digit, always returns false
func IsChainCase ¶
If argument is chain-case style string, return true.
func IsFlatCase ¶
If argument is flatcase style string, return true. If first character is digit, always returns false
func IsPascalCase ¶
If argument is PascalCase style string, return true. If first character is digit, always returns false
func IsSnakeCase ¶
If argument is snake_case style string, return true.
func IsUpperCase ¶
If argument is UPPER_CASE style string, return true.
func ToCamelCase ¶
Convert argument to camelCase style string If argument is empty, return itself
func ToChainCase ¶
Convert argument to chain-case style string. If argument is empty, return itself.
func ToFlatCase ¶
Convert argument to flatcase style string If argument is empty, return itself
func ToPascalCase ¶
Convert argument to PascalCase style string If argument is empty, return itself
func ToSnakeCase ¶
Convert argument to snake_case style string. If argument is empty, return itself.
func ToUpperCase ¶
Convert argument to UPPER_CASE style string. If argument is empty, return itself.
Types ¶
This section is empty.