gen icon indicating copy to clipboard operation
gen copied to clipboard

dont use "--guregu" shounld't import github.com/guregu/null

Open awkj opened this issue 6 years ago • 3 comments

gen always import github.com/guregu/null and will generate

....

var (
      _ = null.Bool()
)

awkj avatar Dec 02 '18 11:12 awkj

Well why this is closed without any reply. I don't actually want the guregu/null feature, but the absence of --guregu still leaves the import there in the output. Could this fix be considered?

anqurvanillapy avatar May 27 '21 09:05 anqurvanillapy

Yes, It should be improved.

smallnest avatar May 27 '21 10:05 smallnest

Facing the same issue here. I do not want the guregu imports, so omitted the --guregu flag. The model files still imports guregu and define an unused variable of type guregu null.

jpmeijers avatar Jun 02 '22 14:06 jpmeijers