3
0

Allow single letter REST API param names

This commit is contained in:
Tomaž Jerman
2021-09-03 16:38:35 +02:00
parent 48a8705053
commit 7422b8be6b

View File

@@ -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 {