Merge pull request #2562 from guohuang/issue2548

issue #2548, added docstring to Go model and its properties
This commit is contained in:
wing328
2016-04-12 10:49:19 +08:00
7 changed files with 35 additions and 0 deletions

View File

@@ -7,8 +7,10 @@ import (
)
{{#model}}
{{#description}}// {{{description}}}{{/description}}
type {{classname}} struct {
{{#vars}}
{{#description}}// {{{description}}}{{/description}}
{{name}} {{{datatype}}} `json:"{{baseName}},omitempty"`
{{/vars}}
}