strcase

package module
v0.0.0-...-78ac914 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2018 License: MIT Imports: 2 Imported by: 0

README

strcase Build Status Coverage

strcase is a go package for converting string case to snake case or camel case.

Example

x := "AnyKind of_string"
xSnake := strcase.ToSnake(x) // any_kind_of_string
xCamel := strcase.ToCamel(x) // AnyKindOfString

Documentation

Overview

Package strcase converts strings to snake_case or CamelCase

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCamel

func ToCamel(s string) string

ToCamel converts a string to CamelCase

func ToKebab

func ToKebab(s string) string

ToKebab converts a string to kebab-case

func ToLowerCamel

func ToLowerCamel(s string) string

ToLowerCamel converts a string to lowerCamelCase

func ToSentence

func ToSentence(s string) string

ToSentence converts a string to sentence case

func ToSnake

func ToSnake(s string) string

ToSnake converts a string to snake_case

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL