No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

hace 6 años
hace 6 años
hace 6 años
hace 6 años
123456789101112131415161718192021222324252627282930313233
  1. # strcase
  2. [![Godoc Reference](https://godoc.org/github.com/iancoleman/strcase?status.svg)](http://godoc.org/github.com/iancoleman/strcase)
  3. [![Build Status](https://travis-ci.org/iancoleman/strcase.svg)](https://travis-ci.org/iancoleman/strcase)
  4. [![Coverage](http://gocover.io/_badge/github.com/iancoleman/strcase?0)](http://gocover.io/github.com/iancoleman/strcase)
  5. [![Go Report Card](https://goreportcard.com/badge/github.com/iancoleman/strcase)](https://goreportcard.com/report/github.com/iancoleman/strcase)
  6. strcase is a go package for converting string case to various cases (e.g. [snake case](https://en.wikipedia.org/wiki/Snake_case) or [camel case](https://en.wikipedia.org/wiki/CamelCase)) to see the full conversion table below.
  7. ## Example
  8. ```go
  9. s := "AnyKind of_string"
  10. ```
  11. | Function | Result |
  12. |-------------------------------------------|----------------------|
  13. | `ToSnake(s)` | `any_kind_of_string` |
  14. | `ToSnakeWithIgnore(s, '.')` | `any_kind.of_string` |
  15. | `ToScreamingSnake(s)` | `ANY_KIND_OF_STRING` |
  16. | `ToKebab(s)` | `any-kind-of-string` |
  17. | `ToScreamingKebab(s)` | `ANY-KIND-OF-STRING` |
  18. | `ToDelimited(s, '.')` | `any.kind.of.string` |
  19. | `ToScreamingDelimited(s, '.', '', true)` | `ANY.KIND.OF.STRING` |
  20. | `ToScreamingDelimited(s, '.', ' ', true)` | `ANY.KIND OF.STRING` |
  21. | `ToCamel(s)` | `AnyKindOfString` |
  22. | `ToLowerCamel(s)` | `anyKindOfString` |
  23. ## Install
  24. ```bash
  25. go get -u github.com/iancoleman/strcase
  26. ```