Skip to content

Commit

Permalink
add reflect as dependency when fixEmptyArrays is enabled (#49)
Browse files Browse the repository at this point in the history
* add reflect as dependency when fixEmptyArrays is enabled

* change generated version
  • Loading branch information
Lukas Jenicek authored Nov 2, 2023
1 parent 979bdb8 commit 508b1fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imports.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
{{- if $opts.server }}
{{- set $stdlibImports "strings" "" -}}
{{- set $stdlibImports "io" "" -}}

{{- if $opts.fixEmptyArrays }}
{{- set $stdlibImports "reflect" "" -}}
{{- end -}}
{{- end -}}

{{- /* Import "time" if there's at least one timestamp. */ -}}
Expand Down

0 comments on commit 508b1fc

Please sign in to comment.