Skip to content

Commit

Permalink
fix comment position in first column of table
Browse files Browse the repository at this point in the history
  • Loading branch information
hizzuu committed Jun 14, 2024
1 parent 7114236 commit 87a0d4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/main/00_struct.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

// {{$alias.UpSingular}} is an object representing the database table.
type {{$alias.UpSingular}} struct {
{{- range $column := .Table.Columns -}}
{{- range $index, $column := .Table.Columns -}}
{{- $colAlias := $alias.Column $column.Name -}}
{{- $orig_col_name := $column.Name -}}
{{- range $column.Comment | splitLines -}}
{{- if eq $index 0 -}}
{{ "\n" }}
{{- end -}}
// {{ . }}
{{ end -}}

Expand Down

0 comments on commit 87a0d4d

Please sign in to comment.