Skip to content

Commit 35bb36b

Browse files
authored
Merge pull request #1344 from 090809/patch-1
hot-fix(templates/structure): fix to angry line eating for fields with ignored tags
2 parents 0ccf00c + 15d15d1 commit 35bb36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/main/00_struct.go.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ type {{$alias.UpSingular}} struct {
77
{{- $colAlias := $alias.Column $column.Name -}}
88
{{- $orig_col_name := $column.Name -}}
99
{{- range $column.Comment | splitLines -}} // {{ . }}
10-
{{end -}}
10+
{{ end -}}
1111

1212
{{if ignore $orig_tbl_name $orig_col_name $.TagIgnore -}}
1313
{{$colAlias}} {{$column.Type}} `{{generateIgnoreTags $.Tags}}boil:"{{$column.Name}}" json:"-" toml:"-" yaml:"-"`
14-
{{- else -}}
14+
{{ else -}}
1515

1616
{{- /* render column alias and column type */ -}}
1717
{{ $colAlias }} {{ $column.Type -}}

0 commit comments

Comments
 (0)