{"repo":"MitulShah1/golang-rest-api-template","free":true,"listed":false,"github":"https://github.com/MitulShah1/golang-rest-api-template","clone":"git clone https://github.com/MitulShah1/golang-rest-api-template.git","description":"Ready to Use Golang Template for REST API with mysql database, basic authentication, logging and cache","language":"Go","stars":22,"topics":["boilerplate","golang","restapi","template","go-boi","go-api","go-api-example","go-boilerplate","microservice","go"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"golang-rest-api-template 🚀 Template Repository This is a template repository for building REST APIs with Go. Click the \"Use this template\" button above to create your own repository based on this template. Overview This template includes everything you need to build a REST API with Go - logging, middleware, database setup, testing, and deployment configs. Features - Structured logging - Middleware (auth, CORS, etc.) - Config management - API docs with Swagger - Docker setup - GitHub Actions CI/CD - Automated releases with GoReleaser - Database migrations - Tests - Makefile for common tasks The main ones are: - gorilla/mux for routing - go-playground/validator for request validation - go-sql-driver/mysql for MySQL database access - jmoiron/sqlx for enhanced database access - Masterminds/squirrel for SQL builder - golang-migrate/migrate for database migrations - swaggo/swag for API documentation generation - strechr/testify for writing easier test assertions - mockery for generating mock interfaces - uber/zap for structured logging - prometheus/client golang for metrics - otel for observability - jaeger for distributed tracing - Redis for cache 🎯 Quick Start (Using Template) 1. Create Repository from Template Click the \"Use this template\" button at the top of this repository, or use GitHub CLI: 2. Clone Your New Repository 3. Update Project Details After creating your repository, update these files: - go.mod - Update module name - README.md - Update project name and descripti","default_branch":null,"files":null,"tree":[],"storefront":"/r/MitulShah1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MitulShah1/golang-rest-api-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}