Properly capitalize exported go types (#7636)

Previously if the type was "myEnum" it would be written as

```
type myEnum string

const (
  DEMO MyEnum = "DEMO"
)
```

which would fail because of the capitalization difference. This fixes that.
This commit is contained in:
Andrew Z Allen 2018-02-18 09:18:03 -07:00 committed by William Cheng
parent 39fa375e3a
commit 47614bb765

View File

@ -5,7 +5,7 @@ import ({{/imports}}{{#imports}}
"{{import}}"{{/imports}}{{#imports}}
)
{{/imports}}{{#model}}{{#isEnum}}{{#description}}// {{{classname}}} : {{{description}}}{{/description}}
type {{{name}}} {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}}
type {{{classname}}} {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}}
// List of {{{name}}}
const (