Skip to content

Commit 508b1fc

Browse files
author
Lukas Jenicek
authored
add reflect as dependency when fixEmptyArrays is enabled (#49)
* add reflect as dependency when fixEmptyArrays is enabled * change generated version
1 parent 979bdb8 commit 508b1fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imports.go.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
{{- if $opts.server }}
2727
{{- set $stdlibImports "strings" "" -}}
2828
{{- set $stdlibImports "io" "" -}}
29+
30+
{{- if $opts.fixEmptyArrays }}
31+
{{- set $stdlibImports "reflect" "" -}}
32+
{{- end -}}
2933
{{- end -}}
3034

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

0 commit comments

Comments
 (0)