mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
1641f1edbd
@ -891,7 +891,7 @@ func formatSourceCode(filename string) {
|
|||||||
func camelCase(in string) string {
|
func camelCase(in string) string {
|
||||||
tokens := strings.Split(in, "_")
|
tokens := strings.Split(in, "_")
|
||||||
for i := range tokens {
|
for i := range tokens {
|
||||||
tokens[i] = strings.ToUpper(tokens[i][:1]) + tokens[i][1:]
|
tokens[i] = strings.Title(strings.Trim(tokens[i], " "))
|
||||||
}
|
}
|
||||||
return strings.Join(tokens, "")
|
return strings.Join(tokens, "")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user