iancoleman / strcase

A golang package for converting to snake_case or CamelCase
MIT License
1.01k stars 106 forks source link

Added support for kebab-case, snake.case with custom delimiters and the screaming variants of all 3 #10

Closed Ma124 closed 6 years ago

Ma124 commented 6 years ago

Added support for kebab-case, snake.case with custom delimiters and the screaming variants of all 3

Function Result
ToSnake(s) any_kind_of_string
ToScreamingSnake(s) ANY_KIND_OF_STRING
ToKebab(s) any-kind-of-string
ToScreamingKebab(s) ANY-KIND-OF-STRING
ToDelimited(s, '.') any.kind.of.string
ToScreamingDelimited(s, '.') ANY.KIND.OF.STRING
ToCamel(s) AnyKindOfString
ToLowerCamel(s) anyKindOfString
iancoleman commented 6 years ago

Thanks for the pull request. Appreciate the detail with the copyright headings etc.