h
httprouter
High performance HTTP router for Go
A lightweight high performance HTTP request router for Go. Zero garbage allocation routing with radix tree structure for maximum performance.
16K
GitHub Stars
none
TypeScript
easy
Learning Curve
4.3
DX Score
Preise
Model
free
Kostenlose Stufe
BSD-3-Clause licensed, fully open source
Funktionen
- ✓ Zero allocations
- ✓ Radix tree routing
- ✓ Named parameters
- ✓ Catch-all parameters
- ✓ Trailing slash handling
- ✓ Path auto-correction
- ✓ Panic recovery
- ✓ OPTIONS handling
- ✓ 405 responses
Vorteile
- + Extremely fast
- + Zero garbage
- + Lightweight
- + Simple API
- + Battle tested
Nachteile
- - Just a router
- - No middleware built-in
- - Less flexible than mux
- - Minimal features
Am besten für
startup indie hacker
Alternativen
backend router performance minimal zero-alloc