commit | c8136b55823dc6af966d084a06056c5575f6400f | [log] [tgz] |
---|---|---|
author | A. Stoewer <adrian.stoewer@rz.ifi.lmu.de> | Mon Apr 24 18:08:47 2017 |
committer | A. Stoewer <adrian.stoewer@rz.ifi.lmu.de> | Mon May 01 19:15:28 2017 |
tree | 953ca1fafd20a151d7503132a6d35c48b94ca215 | |
parent | b35bf1ce810838afa4b13cc7084b989d92639903 [diff] |
Handle trailing upper case letters correctly
The package strcase
converts between different kinds of naming formats such as camel case (CamelCase
), snake case (snake_case
) or kebab case (kebab-case
). The package is designed to work only with strings consisting of standard ASCII letters. Unicode is currently not supported.
Although the master branch is supposed to remain always backward compatible, the repository contains version tags in order to support vendoring tools such as glide
. The tag names follow semantic versioning conventions and have the following format v1.0.0
.
go get -u github.com/stoewer/go-strcase
import "github.com/stoewer/go-strcase"
var snake = strcase.SnakeCase("CamelCase")