Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danilobuerger/phrase
Converts a phrase to a different case (e.g. CamelCase)
https://github.com/danilobuerger/phrase
go
Last synced: 19 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T21:07:42.000Z (over 8 years ago)
- Last Synced: 2024-11-23T07:42:42.879Z (3 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
[![Build Status](https://travis-ci.org/danilobuerger/phrase.svg?branch=master)](https://travis-ci.org/danilobuerger/phrase) [![Coverage Status](https://coveralls.io/repos/github/danilobuerger/phrase/badge.svg?branch=master)](https://coveralls.io/github/danilobuerger/phrase?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/danilobuerger/phrase)](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)
```