Documentation ¶
Overview ¶
Package strcase converts strings to various cases. See the conversion table below: | Function | Result | |-----------------------------------|----------------------| | `ToSnake(s)` | `any_kind_of_string_v5` | | `ToSnakeUpper(s)` | `ANY_KIND_OF_STRING_V5` | | `ToKebab(s)` | `any-kind-of-string-v5` | | `ToKebabUpper(s)` | `ANY-KIND-OF-STRING5-V5` | | `ToDelimited(s, '.')` | `any.kind.of.string.v5` | | `ToDelimitedUpper(s, '.')` | `ANY.KIND.OF.STRING.V5` | | `ToCamel(s)` | `AnyKindOfStringV5` | | `ToCamelLower(s)` | `anyKindOfStringV5` |
Index ¶
- func Is029(v int32) bool
- func IsA2Z(v int32) bool
- func Isa2z(v int32) bool
- func ToCamel(s string) string
- func ToCamelLower(s string) string
- func ToDelimited(s string, del uint8) string
- func ToDelimitedScreaming(s string, del uint8, screaming bool) string
- func ToDelimitedUpper(s string, del uint8) string
- func ToKebab(s string) string
- func ToKebabUpper(s string) string
- func ToSnake(s string) string
- func ToSnakeUpper(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToCamelLower ¶
ToCamelLower converts a string to lowerCamelCase
func ToDelimited ¶
ToDelimited converts a string to delimited.snake.case (in this case `del = '.'`)
func ToDelimitedScreaming ¶
ToDelimitedScreaming converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `del = '.'; screaming = true`) or delimited.snake.case (in this case `del = '.'; screaming = false`)
func ToDelimitedUpper ¶
ToDelimitedUpper converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `del = '.'; screaming = true`) or delimited.snake.case (in this case `del = '.'; screaming = false`)
func ToKebabUpper ¶
ToKebabUpper converts a string to SCREAMING-KEBAB-CASE
func ToSnakeUpper ¶
ToSnakeUpper converts a string to SCREAMING_SNAKE_CASE
Types ¶
This section is empty.