diff --git a/templates/main/00_struct.go.tpl b/templates/main/00_struct.go.tpl index 5320430f..f2d2ff1e 100644 --- a/templates/main/00_struct.go.tpl +++ b/templates/main/00_struct.go.tpl @@ -7,11 +7,11 @@ type {{$alias.UpSingular}} struct { {{- $colAlias := $alias.Column $column.Name -}} {{- $orig_col_name := $column.Name -}} {{- range $column.Comment | splitLines -}} // {{ . }} - {{end -}} + {{ end -}} {{if ignore $orig_tbl_name $orig_col_name $.TagIgnore -}} {{$colAlias}} {{$column.Type}} `{{generateIgnoreTags $.Tags}}boil:"{{$column.Name}}" json:"-" toml:"-" yaml:"-"` - {{- else -}} + {{ else -}} {{- /* render column alias and column type */ -}} {{ $colAlias }} {{ $column.Type -}}