1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 23:50:54 +00:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
ZhengYang 2014-09-04 10:54:43 +08:00
commit 1641f1edbd

View File

@ -891,7 +891,7 @@ func formatSourceCode(filename string) {
func camelCase(in string) string {
tokens := strings.Split(in, "_")
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, "")
}