Skip to the content.

29. Go: Key Recommendations

Date: 2023-11-17

Status

Accepted

Context

In our quest to enhance the quality and reliability of our Go codebase, we identified the need for robust tools and guidelines. Effective linting, handling of nil pointers, and adherence to a consistent style guide are essential for maintaining code quality.

Decision

  1. Adopt golangci-lint: This comprehensive linter will be our primary tool for identifying and fixing issues in our Go code.

  2. Implement nilaway by Uber: To specifically address nil pointer errors, we will utilize Uber’s nilaway.

  3. Follow the Uber Go Style Guide: Our coding style will align with the Uber Go Style Guide, ensuring consistency and adherence to industry best practices.

    1. Google Style Guide: We will also follow the Google Style Guide

Consequences