|
@@ -212,7 +212,9 @@ func KsortToStr(params map[string]string) []string { |
|
|
return keys |
|
|
return keys |
|
|
} |
|
|
} |
|
|
func UderscoreToUpperCamelCase(s string) string { |
|
|
func UderscoreToUpperCamelCase(s string) string { |
|
|
s = strings.Replace(s, "_", " ", -1) |
|
|
|
|
|
s = strings.Title(s) |
|
|
|
|
|
return strings.Replace(s, " ", "", -1) |
|
|
|
|
|
|
|
|
split := strings.Split(s, "_") |
|
|
|
|
|
if len(split) == 2 { |
|
|
|
|
|
s = split[0] + strings.Title(split[1]) |
|
|
|
|
|
} |
|
|
|
|
|
return s |
|
|
} |
|
|
} |