package strcase
import "github.com/stoewer/go-strcase"
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.
Index ¶
- func KebabCase(s string) string
- func LowerCamelCase(s string) string
- func SnakeCase(s string) string
- func UpperCamelCase(s string) string
- func UpperKebabCase(s string) string
- func UpperSnakeCase(s string) string
Functions ¶
func KebabCase ¶
KebabCase converts a string into kebab case.
func LowerCamelCase ¶
LowerCamelCase converts a string into camel case starting with a lower case letter.
func SnakeCase ¶
SnakeCase converts a string into snake case.
func UpperCamelCase ¶
UpperCamelCase converts a string into camel case starting with a upper case letter.
func UpperKebabCase ¶
UpperKebabCase converts a string into kebab case with capital letters.
func UpperSnakeCase ¶
UpperSnakeCase converts a string into snake case with capital letters.
Source Files ¶
camel.go doc.go helper.go kebab.go snake.go
- Version
- v1.3.0 (latest)
- Published
- Mar 27, 2023
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 hour ago –
Tools for package owners.