golang-gin-api

Installation
SKILL.md

golang-gin-api — Core REST API Development

Build production-grade REST APIs with Go and Gin. This skill covers the 80% of patterns you need daily: server setup, routing, request binding, response formatting, and error handling.

When to Use

  • Creating a new Go REST API or HTTP server
  • Adding routes, handlers, or middleware to a Gin app
  • Binding and validating incoming JSON/query/URI parameters
  • Structuring a Go project with a layered project structure
  • Wiring handlers → services → repositories in main.go
  • Returning consistent JSON error responses

Quick Reference

Project structure: cmd/api/main.go (entry point), internal/handler/ (HTTP), internal/service/ (business logic), internal/repository/ (data access), internal/domain/ (entities/errors), pkg/middleware/ (shared).

Related skills
Installs
79
GitHub Stars
2
First Seen
Mar 4, 2026