Golang HTTP router
BunRouter is brought to you by :star: uptrace/uptrace. Uptrace is an open-source APM tool that supports distributed tracing, metrics, and logs. You can use it to monitor applications and set up automatic alerts to receive notifications via email, Slack, Telegram, and others. Star it as well!
TLDR BunRouter is as fast as httprouter, but supports middlewares, routing rules priority, and error handling.
BunRouter is an extremely fast HTTP router for Go with unique combination of features:
gin.Context or
echo.Context).| Router | Middlewares | Error handling | Routes priority | net/http API |
|---|---|---|---|---|
| BunRouter | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| httprouter | :x: | :x: | :x: | :heavy_check_mark: |
| Chi | :heavy_check_mark: | :x: | :heavy_check_mark: | :heavy_check_mark: |
| Echo | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: |
| Gin | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: |
Learn:
Examples:
Projects using BunRouter:
Benchmarks:
Benchmark results
…Install:
go get github.com/uptrace/bunrouterRun the example:
…See the Golang Router documentation for details.
No open issues yet, or sync has not completed.