Open bkmeneguello opened 1 month ago
A common idiom in Go is creating empty structs instead of using other constructs, like:
x := Y{}
var x Y
x := &Y{}
x := new(Y)
But this linter complains about that. Could be an option to "ignore empty struct initializations"?
Hi Bkmeneguello. I'd really love the same feature too! I had a go at putting together a pull request for it if you want to try it out. https://github.com/GaijinEntertainment/go-exhaustruct/pull/118
A common idiom in Go is creating empty structs instead of using other constructs, like:
x := Y{}
, instead ofvar x Y
x := &Y{}
, instead ofx := new(Y)
But this linter complains about that. Could be an option to "ignore empty struct initializations"?