Ir para o conteúdo principal
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

Preços

Model
free
Plano Gratuito
BSD-3-Clause licensed, fully open source

Recursos

  • Zero allocations
  • Radix tree routing
  • Named parameters
  • Catch-all parameters
  • Trailing slash handling
  • Path auto-correction
  • Panic recovery
  • OPTIONS handling
  • 405 responses

Prós

  • + Extremely fast
  • + Zero garbage
  • + Lightweight
  • + Simple API
  • + Battle tested

Contras

  • - Just a router
  • - No middleware built-in
  • - Less flexible than mux
  • - Minimal features

Melhor Para

startup indie hacker
backend router performance minimal zero-alloc