Go to file
2019-04-19 09:01:53 +02:00
.travis.yml Simpler travis.yml 2015-10-16 15:33:57 +11:00
camel_test.go ran gofmt -s -w *.go 2019-04-19 09:01:53 +02:00
camel.go Added doc and kebab 2018-07-03 20:36:59 +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 Fixed typo in README 2018-07-03 21:12:42 +02:00
snake_test.go ran gofmt -s -w *.go 2019-04-19 09:01:53 +02:00
snake.go Added doc and kebab 2018-07-03 20:36:59 +02:00

strcase

Godoc Reference Build Status Coverage

strcase is a go package for converting string case to snake case or camel case.

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