Allow single letter REST API param names
This commit is contained in:
@@ -89,6 +89,8 @@ func export(pp ...string) (out string) {
|
||||
for _, p := range pp {
|
||||
if len(p) > 1 {
|
||||
p = strings.ToUpper(p[:1]) + p[1:]
|
||||
} else {
|
||||
p = strings.ToUpper(p)
|
||||
}
|
||||
|
||||
if ss := nonIdentChars.Split(p, -1); len(ss) > 1 {
|
||||
|
||||
Reference in New Issue
Block a user