RouterGetting Started
Installation
Install the router package into your Go project.
router is a high-performance and idiomatic HTTP router for modern Go applications.
It is designed for APIs, web services, microservices, and backend platforms that require fast route matching, clean middleware composition, and production-ready HTTP infrastructure.
The package provides:
- Fast radix-tree based routing
- Route groups and middleware pipelines
- Regex and parameterized routes
- Request-scoped context helpers
- Built-in rate limiting and recovery middleware
- Static file serving and health check endpoints
- Multiserver support and graceful shutdown
- Integration with Go’s standard
net/httpecosystem
Add the package to your project using go get:
go get github.com/netlifeguru/routerImport the package into your application:
import "github.com/netlifeguru/router"Once installed, continue with the Quick Start guide to create your first routes, middleware, and HTTP server.