Closed marcosnils closed 3 years ago
Some linting done in in #63
I recommend golangci-lint for linting Go projects.
This linter supports a large set of different linters and one can configure the linting according to the needs (and personal preference). With the default settings, there are currently quite some issues listed. Most of them are related to errors not being checked and unused code.
And if you want to go more strict on the source code formatting, I recommend gofumpt
(also part of gopls
, it can be enabled as default formatting in e.g. vs code Go plugin).
bin install github.com/mvdan/gofumpt
gofumpt -w -s -l .
Bin could use some linting :cupid: