-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
21 lines (16 loc) · 862 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2019 The parithiban. All rights reserved.
// license that can be found in the LICENSE file.
/*
Package stringcases used to convert a string to different case styles.
Usage:
import "github.com/parithiban/stringcases"
Call the respective string convertion methods to convert the cases. For example:
func main() {
camelCase := stringcases.ConvertToCamel("convert to camel case") //output: convertToCamelCase
snake_case := stringcases.ConvertToSnake("convert to snake case") //output: convert_to_snake_case
kebab-case := stringcases.ConvertToKebab("convert to kebab case") //output: convert-to-kebab-case
PascalCase := stringcases.ConvertToPascal("convert to pascal case") //output: ConvertToPascalCase
lowerfirst := stringcases.FirstLetterLower("Convert To Lower Case") //output: convert To Lower Case
}
*/
package stringcases