Backend Developer Guidelines (Go)
This section defines general engineering standards for Go backend services.
The goal is consistent architecture, predictable API behavior, safer data operations, and cleaner collaboration during development.
Rule Language
MUST: mandatory ruleSHOULD: strong recommendation; deviations require clear rationaleMAY: optional pattern
Core Principles
- Keep transport, business logic, and persistence concerns separated.
- Keep API contracts consistent and explicit.
- Keep data operations safe, bounded, and migration-driven.
- Keep code easy to review, test, and maintain.
Documentation Map
- Architecture: structure, layering, coding standards
- API: routing conventions, status codes, validation, pagination, versioning
- Infrastructure: database, migrations, caching
- Operations: pull request checklist