Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
iancoleman e506e3ef73
Merge pull request #14 from Ma124/master
il y a 5 ans
.travis.yml Simpler travis.yml il y a 8 ans
LICENSE Added license notices of Ian Coleman to each file il y a 5 ans
README.md Added GoReportCard Badge and reworded the README slightly il y a 5 ans
camel.go refactored doc to please golint il y a 5 ans
camel_test.go ran gofmt -s -w *.go il y a 5 ans
doc.go refactored doc to please golint il y a 5 ans
numbers.go Added license notices of Ian Coleman to each file il y a 5 ans
snake.go refactored doc to please golint il y a 5 ans
snake_test.go ran gofmt -s -w *.go il y a 5 ans

README.md

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