golang-http-frameworks
Installation
SKILL.md
Go HTTP Frameworks & REST APIs
Overview
Go provides exceptional HTTP capabilities starting with the standard library's net/http package. Go 1.22+ introduced enhanced pattern routing in ServeMux, making stdlib viable for many applications. For more complex needs, frameworks like Chi, Gin, Echo, and Fiber offer additional features while maintaining Go's simplicity and performance.
Key Features:
- π net/http: Production-ready standard library with Go 1.22+ routing
- π― Chi: Lightweight, stdlib-compatible router with middleware chains
- β‘ Gin: High-performance framework with binding and validation
- π‘οΈ Echo: Type-safe, enterprise framework with OpenAPI support
- π Fiber: Express.js-inspired framework with WebSocket support
- π§ Middleware: Composable request/response processing
- β Validation: Struct tag-based request validation
- π§ͺ Testing: httptest.Server for comprehensive integration tests