Skip to content

Commit

Permalink
add internal lowercasing method
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatali committed Sep 18, 2019
1 parent b7d862e commit 1927531
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codegen/casing.go
Expand Up @@ -215,3 +215,9 @@ func CamelToSnake(s string) string {
}
return strings.ToLower(strings.Join(words, "_"))
}

// LowerPascal is Pascal with first char lower
func LowerPascal(str string) string {
str = PascalCase(str)
return strings.ToLower(string(str[0])) + string(str[1:])
}

0 comments on commit 1927531

Please sign in to comment.