25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
Shuhei Kitagawa f97dca1ceb Add an instruction to install 5 yıl önce
.travis.yml Update Golang versions on Travis CI 5 yıl önce
LICENSE Added license notices of Ian Coleman to each file 6 yıl önce
README.md Add an instruction to install 5 yıl önce
camel.go Added doc and kebab 6 yıl önce
camel_test.go Added license notices of Ian Coleman to each file 6 yıl önce
numbers.go Added license notices of Ian Coleman to each file 6 yıl önce
snake.go Added doc and kebab 6 yıl önce
snake_test.go Add tests for untested methods 5 yıl önce

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