All Projects → stoewer → go-strcase

stoewer / go-strcase

Licence: MIT License
Convert snake case, camel case and kebap case strings

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-strcase

stringy
Convert string to camel case, snake case, kebab case / slugify, custom delimiter, pad string, tease string and many other functionalities with help of by Stringy package.
Stars: ✭ 137 (+107.58%)
Mutual labels:  camel-case, kebab-case, snake-case
case-converter
Convert strings between 13 naming conventions: Snake case, Camel case, Kebab case, Pascal case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Title case, Sentence case and Dot notation.
Stars: ✭ 148 (+124.24%)
Mutual labels:  camel-case, kebab-case, snake-case
recase
♻️ Convert strings to any case.
Stars: ✭ 183 (+177.27%)
Mutual labels:  snake-case
runtime-fmt
Runtime string formatting for Rust
Stars: ✭ 53 (-19.7%)
Mutual labels:  string-formatter
pyfmt
Golang implementation of PEP3101
Stars: ✭ 64 (-3.03%)
Mutual labels:  string-formatter
axios-case-converter
Axios transformer/interceptor that converts snake_case/camelCase
Stars: ✭ 114 (+72.73%)
Mutual labels:  snake-case
alfred-string-operations
Perform string operations to clipboard content
Stars: ✭ 70 (+6.06%)
Mutual labels:  kebab-case
formatxx
C++ string formatting library
Stars: ✭ 42 (-36.36%)
Mutual labels:  string-formatter
typescript-string-operations
Simple lightweight string operation library for Typescript. No jQuery required! Unit tested, works with Angular.
Stars: ✭ 31 (-53.03%)
Mutual labels:  string-formatter
python-string-utils
A handy Python library to validate, manipulate and generate strings
Stars: ✭ 47 (-28.79%)
Mutual labels:  snake-case
pascalcase
Convert a string to pascal case (upper camel case). Used by more than 8.7 million projects on GitHub! Please follow this library's author: https://github.com/jonschlinkert
Stars: ✭ 35 (-46.97%)
Mutual labels:  camel-case
camelcaseplugin
CamelCasePlugin for IDEA IDEs
Stars: ✭ 49 (-25.76%)
Mutual labels:  snake-case

CircleCI codecov GoDoc

Go strcase

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.

Versioning and stability

Although the master branch is supposed to remain always backward compatible, the repository contains version tags in order to support vendoring tools. The tag names follow semantic versioning conventions and have the following format v1.0.0. This package supports Go modules introduced with version 1.11.

Example

import "github.com/stoewer/go-strcase"

var snake = strcase.SnakeCase("CamelCase")

Dependencies

Build dependencies

  • none

Test dependencies

  • github.com/stretchr/testify

Run linters and unit tests

To run the static code analysis, linters and tests use the following commands:

golangci-lint run --config .golangci.yml ./...
go test ./...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].