Gin REST API Template
A template for Go APIs.
This template sets up the parts most Go services need, each in its own module. Gin handles routing, Uber Fx connects dependencies, and pgx provides direct access to PostgreSQL.

What it includes
The template includes request validation, authentication, logging, CORS middleware, and error handling.
Explicit database access
Database queries use pgx directly, so the SQL stays in the application code. The accompanying documentation explains custom queries and how the dependency-injection setup fits together.
The README covers setup, architecture, and the motivation behind the project. The repository is available as a GitHub template.