diff --git a/pkg/codegen/templating.go b/pkg/codegen/templating.go index 709388c09..329a30267 100644 --- a/pkg/codegen/templating.go +++ b/pkg/codegen/templating.go @@ -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 {