Go to file
iancoleman 21f80d9b9a
Merge pull request #19 from floydspace/floydspace-patch-1
treat next letter after `.` as cap
2019-11-13 09:53:59 +11:00
.travis.yml Simpler travis.yml 2015-10-16 15:33:57 +11:00
camel_test.go Add new test cases 2019-11-06 08:36:36 +01:00
camel.go treat next letter after . as cap 2019-11-05 00:21:21 +01:00
doc.go refactored doc to please golint 2019-04-19 09:12:49 +02:00
LICENSE Added license notices of Ian Coleman to each file 2018-07-03 19:52:40 +02:00
numbers.go Added license notices of Ian Coleman to each file 2018-07-03 19:52:40 +02:00
README.md Added GoReportCard Badge and reworded the README slightly 2019-04-19 09:21:59 +02:00
snake_test.go add method ToSnakeWithIgnore 2019-09-29 15:08:34 +08:00
snake.go add method ToSnakeWithIgnore 2019-09-29 15:08:34 +08:00

strcase

Godoc Reference Build Status Coverage Go Report Card

strcase is a go package for converting string case to various cases (e.g. snake case or camel case) to see the full conversion table below.

Example

s := "AnyKind of_string"
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