We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa8bdbb commit 86fb1a6Copy full SHA for 86fb1a6
README.md
@@ -24,7 +24,13 @@ import (
24
25
func func main() {
26
// Convert string to snake case -> returns "my_camel_case_string"
27
+ // Input case style is automatically detected
28
gocc.C("myCamelCaseString").ToSnakeCase()
29
+
30
+ // Convert with known input type
31
+ // Using Convert function with known type is much faster than the example above,
32
+ // because there is no need to detect the input type
33
+ gocc.C("myCamelCaseString").Convert(gocc.StyleCamelCase, gocc.StyleSnakeCase)
34
35
// Validate strings -> returns true
36
gocc.IsSnakeCase("my_snake_case_string")
0 commit comments