Add golangci-lint linter to project
What does this MR do and why?
Add Go code linting to project using https://golangci-lint.run.
Also fix some errors picked up in linting (specifically errcheck
linter).
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Evan Read