gin
Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.
Learn how to run Gin on Unix sockets with this complete guide. Discover efficient inter-process communication for your Gin applications and optimize performance.
Best Practices for Error Handling in Gin Handlers: A Complete GuideMaster error handling in Gin handlers with our guide. Learn best practices for context errors, response generation, and application recovery for robust web apps.
How to Use Context Values and Key-Value Storage in Gin MiddlewareLearn to use context values and key-value storage in Gin middleware with Set and Get. Propagate data efficiently without global variables.
How to Implement WebSocket Support in Gin: A Complete GuideImplement WebSocket support in Gin using `c.IsWebsocket()` and `c.Writer.Hijack()`. This guide details using Go libraries like gorilla for full-duplex communication with Gin features.
How Gin Implements HTTP Content Negotiation: A Deep Dive into the Source CodeExplore how Gin implements HTTP content negotiation. Discover lazy Accept header parsing and optimal format selection in the Gin source code to improve your API development.
How to Handle File Uploads with Size Limits in GinLearn how to handle file uploads with size limits in Gin. Configure MaxMultipartMemory and check ContentLength to reject oversized uploads efficiently.
Difference Between JSON, SecureJSON, PureJSON, and IndentedJSON in GinUnderstand the differences between JSON, SecureJSON, PureJSON, and IndentedJSON in Gin. Learn about HTML escaping, pretty-printing, security against hijacking, and unescaped streaming for efficient JSON rendering.
How to Use HTML Templates with Custom Delimiters in GinEasily customize HTML template delimiters in your Gin web applications. Learn to change default {{ and }} to any characters with Engine Delims for dynamic templating.
How to Implement Rate Limiting Middleware in Gin: 3 Production-Ready MethodsLearn how to implement rate limiting middleware in Gin with 3 production-ready methods. Protect your API from abuse with efficient rate limiting strategies for your Go applications.
Gin HTTP/2 and HTTP/3 (QUIC) Support: Implementation GuideLearn how Gin supports HTTP/2 and HTTP/3 (QUIC). Implement faster web protocols automatically with TLS, h2c flags, and the RunQUIC method. Boost your Go web app performance today.
How to Validate Request Bodies with Custom Validators in GinLearn to validate request bodies in Gin using custom validators. Extend the default validator to create efficient and tailored validation logic for your Go applications.
How to Implement Graceful Shutdown for a Gin Server in GoImplement graceful shutdown for your Gin server in Go. Learn how to manage OS termination signals and drain active connections to prevent dropped requests.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →