This is a starter boilerplate for the Gin framework in the Go programming language. This boilerplate serves as a foundational template for developing web applications using the Gin framework. It includes essential configurations, folder structures, and often-used components, providing developers with a kickstart for their Gin-based projects. With this boilerplate, you can quickly begin building web applications with Gin, saving you time and effort on initial setup and configuration tasks.
.env
file- Live Reload
- Viper
- I18n
- Sentry
- Zap Logger
- CORS
- Rate Limiter
We utilize wgo for seamless live reload support.
To initiate live reloading, simply run the wgo run main.go
command from the root directory of your project.
For personalized error responses, consult the examples within the /api/errors-example.go path to gain insights and guidance.
Additionally, for server-related errors, it's advisable to utilize the panic
function to properly signal and manage the issue.
For a comprehensive exploration of CORS configuration options, refer to the documentation.
- Integrate Viper
- Docker
- Tests