3 ms·
I recommend run a linter against your codebase. https://golangci-lint.run https://golangci-lint.run https://github.com/go-critic/go-critic https://github.com/
by is_taken 4y ago
I recommend run a linter against your codebase.
https://golangci-lint.run https://golangci-lint.run
https://github.com/go-critic/go-critic https://github.com/go-critic/go-critic
https://github.com/mgechev/revive https://github.com/mgechev/revive
- is_taken 4y agoAnd i would actually rename cmd/digger/main.go to cmd/digger/digger.go (_test.go too) Why? If you go build cmd/digger/main.go you end up with main, if renamed you end up with digger. Without using additional -o flags. Also consider https://goreleaser.com/intro/ https://goreleaser.com/intro/