Hacker News new | ask | show | jobs
by is_taken 1181 days ago
I recommend run a linter against your codebase.

https://golangci-lint.run

https://github.com/go-critic/go-critic

https://github.com/mgechev/revive

1 comments

And 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/