We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc8ab5 commit 0e9aa79Copy full SHA for 0e9aa79
internal/codegen/golang/templates/stdlib/queryCode.tmpl
@@ -13,7 +13,10 @@ type {{.Arg.Type}} struct { {{- range .Arg.UniqueFields}}
13
{{end}}
14
15
{{if .Ret.EmitStruct}}
16
-type {{.Ret.Type}} struct { {{- range .Ret.Struct.Fields}}
+type {{.Ret.Type}} struct { {{- range .Ret.Struct.EmbedFields}}
17
+ {{.Name}} {{.Type}} {{if $.EmitJSONTags}}{{$.Q}}{{.Tag}}{{$.Q}}{{end}}
18
+ {{- end}}
19
+ {{- range .Ret.Struct.Fields}}
20
{{.Name}} {{.Type}} {{if or ($.EmitJSONTags) ($.EmitDBTags)}}{{$.Q}}{{.Tag}}{{$.Q}}{{end}}
21
{{- end}}
22
}
0 commit comments