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.
2 parents 6251f87 + 87a0d4d commit 4b7da0dCopy full SHA for 4b7da0d
templates/main/00_struct.go.tpl
@@ -3,10 +3,14 @@
3
4
// {{$alias.UpSingular}} is an object representing the database table.
5
type {{$alias.UpSingular}} struct {
6
- {{- range $column := .Table.Columns -}}
+ {{- range $index, $column := .Table.Columns -}}
7
{{- $colAlias := $alias.Column $column.Name -}}
8
{{- $orig_col_name := $column.Name -}}
9
- {{- range $column.Comment | splitLines -}} // {{ . }}
+ {{- range $column.Comment | splitLines -}}
10
+ {{- if eq $index 0 -}}
11
+ {{ "\n" }}
12
+ {{- end -}}
13
+ // {{ . }}
14
{{ end -}}
15
16
{{if ignore $orig_tbl_name $orig_col_name $.TagIgnore -}}
0 commit comments