You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Shuhei Kitagawa f97dca1ceb Add an instruction to install 5 vuotta sitten
.travis.yml Update Golang versions on Travis CI 5 vuotta sitten
LICENSE Added license notices of Ian Coleman to each file 5 vuotta sitten
README.md Add an instruction to install 5 vuotta sitten
camel.go Added doc and kebab 5 vuotta sitten
camel_test.go Added license notices of Ian Coleman to each file 5 vuotta sitten
numbers.go Added license notices of Ian Coleman to each file 5 vuotta sitten
snake.go Added doc and kebab 5 vuotta sitten
snake_test.go Add tests for untested methods 5 vuotta sitten

README.md

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

Install

go get -u github.com/iancoleman/strcase