optimize code (#417)

* optimize code

* optimize code

* optimize code

* optimize code
This commit is contained in:
kingxt
2021-01-26 17:37:22 +08:00
committed by GitHub
parent a784982030
commit 2b07f22672
5 changed files with 70 additions and 76 deletions

View File

@@ -12,6 +12,7 @@ func lowCamelCase(s string) string {
if len(s) < 1 {
return ""
}
s = util.ToCamelCase(util.ToSnakeCase(s))
return util.ToLower(s[:1]) + s[1:]
}