awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
gin-gonic avatar

gin-gonic/examples

0
View on GitHub↗
gin-gonic.com↗

Examples

This repository is a collection of implementation patterns, tutorial code, and practical examples for building web applications with the Gin framework in Go. It serves as a guide for learning how to structure Go web servers, specifically focusing on mapping URL paths to handler functions and managing request flow.

The project provides demonstrations of middleware implementation for tasks such as authentication, logging, and rate limiting. It also includes reference examples for developing REST APIs, with a focus on structuring data and sending JSON responses to clients.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Tutorials - Provides instructional guides and practical code examples for learning how to use the Gin web framework.
  • HTTP Request Dispatching - Demonstrates mechanisms that map incoming HTTP requests to internal handler callbacks based on path patterns.
  • Request Interception Middleware - Implements architectural patterns for intercepting requests to perform authentication, logging, and rate limiting.
  • Web Framework Route Handlers - Demonstrates how to map URL patterns to specific application functions within a web framework.
  • Request Routing - Provides practical examples of mapping incoming HTTP requests to handler functions within Go services.
  • HTTP Request Routing - Maps incoming network paths and URLs to specific handlers or controllers using predefined patterns.
  • Middleware Chains - Provides examples of architectural pipelines for processing HTTP requests and responses through a chain of handlers.
  • HTTP Middleware Pipelines - Implements middleware chains that intercept and transform HTTP requests for logging and authentication.
  • JSON Response Formatters - Provides utilities to convert data structures into JSON strings and set appropriate HTTP content-type headers.
  • Framework Middleware Examples - Shows how to intercept HTTP requests for authentication, logging, and rate limiting specifically within Gin.
  • JSON APIs - Provides reference examples for building services that deliver structured JSON data for programmatic consumption.
  • RESTful API Development - Provides reference patterns for building scalable web services using standard HTTP methods and JSON.
  • Radix Tree Routers - Uses high-performance compressed trie structures to match incoming URL paths to handler functions.
4,537 stars·727 forks·Go·MIT·26 views

Star history

Star history chart for gin-gonic/examplesStar history chart for gin-gonic/examples

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does gin-gonic/examples do?

This repository is a collection of implementation patterns, tutorial code, and practical examples for building web applications with the Gin framework in Go. It serves as a guide for learning how to structure Go web servers, specifically focusing on mapping URL paths to handler functions and managing request flow.

What are the main features of gin-gonic/examples?

The main features of gin-gonic/examples are: Tutorials, HTTP Request Dispatching, Request Interception Middleware, Web Framework Route Handlers, Request Routing, HTTP Request Routing, Middleware Chains, HTTP Middleware Pipelines.

Which projects share features with gin-gonic/examples?

Projects with overlapping indexed features include: zijianhe/koa-router — koa-router is a routing middleware for Koa applications that maps incoming HTTP requests to specific handler functions… emicklei/go-restful — go-restful is a framework for building RESTful web services in Go. It functions as a toolkit for managing API… xinliangnote/go — This project is a Go programming language study guide and backend development course. It provides a collection of… h3js/h3 — Hono is a minimal JavaScript HTTP framework designed for building web servers across multiple runtimes, including… salvo-rs/salvo — Salvo is a comprehensive Rust web framework for building asynchronous HTTP servers and web applications. It features a… koajs/router — This project provides a routing library for the Koa web framework, designed to map incoming HTTP requests to specific…

Projects sharing features with Examples

These projects share indexed features with Examples. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • zijianhe/koa-routerZijianHe avatar

    ZijianHe/koa-router

    4,816View on GitHub↗

    koa-router is a routing middleware for Koa applications that maps incoming HTTP requests to specific handler functions based on URL patterns and HTTP methods. It provides the foundation for organizing web endpoints and developing REST APIs by linking request paths to their corresponding controller actions. The project enables the organization of complex endpoints through recursive router nesting, allowing multiple router instances to be mounted as middleware to create logical route hierarchies. It supports dynamic URL generation via named route mapping, which allows the creation of URL string

    JavaScript
    View on GitHub↗4,816
  • emicklei/go-restfulemicklei avatar

    emicklei/go-restful

    5,111View on GitHub↗

    go-restful is a framework for building RESTful web services in Go. It functions as a toolkit for managing API endpoints, providing a request router that maps incoming HTTP requests to handler functions using path parameters and custom URL patterns. The framework includes a data conversion layer that transforms Go structures into JSON or XML formats for request and response bodies. It also provides a system for organizing related web services into containers to manage endpoint prefixing and shared configuration. The project covers request lifecycle management through middleware filters for va

    Go
    View on GitHub↗5,111
  • xinliangnote/goxinliangnote avatar

    xinliangnote/Go

    4,932View on GitHub↗

    This project is a Go programming language study guide and backend development course. It provides a collection of learning notes and practical examples covering fundamental syntax and core language concepts. The repository functions as a tutorial for building web APIs and network services. It includes implementation guides for the Gin web framework and code demonstrations for creating remote procedure call services using Protocol Buffers. The material covers backend API engineering, including routing, data binding, and error handling. It also includes examples of structured logging and custo

    Gogingin-frameworkgo
    View on GitHub↗4,932
  • h3js/h3h3js avatar

    h3js/h3

    5,353View on GitHub↗

    Hono is a minimal JavaScript HTTP framework designed for building web servers across multiple runtimes, including Node.js, edge runtimes, and serverless platforms. It functions as a cross-runtime web server and a web standard API wrapper, normalizing various runtime request and response objects into standard Web API signatures. The project serves as an HTTP middleware orchestrator and request handler, utilizing a middleware-based request pipeline and hierarchical route mounting to create modular server structures. It distinguishes itself through a runtime-agnostic event wrapper that ensures c

    TypeScript
    View on GitHub↗5,353
Compare all 30 related projects→

Curated searches featuring Examples

Hand-picked collections where Examples appears.
  • Go web framework boilerplate