Skip to content

Commit

Permalink
Merge pull request #1344 from 090809/patch-1
Browse files Browse the repository at this point in the history
hot-fix(templates/structure): fix to angry line eating for fields with ignored tags
  • Loading branch information
stephenafamo authored Jan 24, 2024
2 parents 0ccf00c + 15d15d1 commit 35bb36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/main/00_struct.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit 35bb36b

Please sign in to comment.