Go Backend Conventions
- Avoid package-level state. Use dependency injection for database connections and loggers.
- Return early to avoid deep nesting.
- Handle errors explicitly and wrap them with context using
fmt.Errorf("failed to do X: %w", err).
fmt.Errorf("failed to do X: %w", err).Search articles, projects, and more...