To make the code more uniform and readable, it is better to run it against a linter. golangci-lint is quite popular for Go based projects and it also comes with a GitHub action that can be setup to run on every PR.
What needs to be done?
create a new CI workflow that runs on every PR and push to main
you may encounter errors in existing code when you run the linter, fix those
note that not all linting actions maybe suitable for the project or maybe an overkill, feel free to exclude those
Description:
To make the code more uniform and readable, it is better to run it against a linter.
golangci-lint
is quite popular for Go based projects and it also comes with a GitHub action that can be setup to run on every PR.What needs to be done?