3 ms·
Not to take away from your argument, but for what it's worth, there is a lint for this [1] which is available in golangci-lint [2]. If there is any Go developer
by majewsky 3y ago
Not to take away from your argument, but for what it's worth, there is a lint for this [1] which is available in golangci-lint [2]. If there is any Go developer reading this who does not know about golangci-lint, I wholeheartedly recommend looking into it. It's found a fair share of significant issues for me that otherwise would have required tests to uncover.
[1] https://github.com/gordonklaus/ineffassign https://github.com/gordonklaus/ineffassign
[2] https://golangci-lint.run/ https://golangci-lint.run/