https://github.com/danilobuerger/phrase
Converts a phrase to a different case (e.g. CamelCase)
https://github.com/danilobuerger/phrase
go
Last synced: 2 months ago
JSON representation
Converts a phrase to a different case (e.g. CamelCase)
- Host: GitHub
- URL: https://github.com/danilobuerger/phrase
- Owner: danilobuerger
- License: mit
- Created: 2016-07-29T19:18:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T21:07:42.000Z (over 8 years ago)
- Last Synced: 2025-01-23T15:15:05.528Z (4 months ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - phrase
README
[](https://travis-ci.org/danilobuerger/phrase) [](https://coveralls.io/github/danilobuerger/phrase?branch=master) [](https://goreportcard.com/report/github.com/danilobuerger/phrase)
# phrase
Converts a phrase to a different case (e.g. CamelCase).
## CamelCase
`phrase.ToCamel` converts a lower case string with separators to a camel case string.
```go
phrase.ToCamel("abc def", " ")
// Returns: "AbcDef" (without quotes)
```