Skip to content

Commit

Permalink
Merge 1927531 into b7d862e
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatali committed Sep 18, 2019
2 parents b7d862e + 1927531 commit 602f73d
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 602f73d

Please sign in to comment.