Ir al contenido 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

Precios

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

Características

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

Ventajas

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

Desventajas

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

Mejor Para

startup indie hacker
backend router performance minimal zero-alloc