refine goctl rpc generator

This commit is contained in:
kevin
2020-08-28 21:22:35 +08:00
parent db16115037
commit 72132ce399
20 changed files with 193 additions and 154 deletions

View File

@@ -435,7 +435,7 @@ func (a *PbAst) GenTypesCode() (string, error) {
types = append(types, structCode)
}
buffer, err := util.With("type").Parse(typeTemplate).Execute(map[string]interface{}{
"types": strings.Join(types, "\n"),
"types": strings.Join(types, "\n\n"),
})
if err != nil {
return "", err