mux
gocraft/web
Our great sponsors
mux | gocraft/web | |
---|---|---|
1 | 2 | |
486 | 1,508 | |
-0.2% | 0.3% | |
10.0 | 0.0 | |
over 6 years ago | over 3 years ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mux
gocraft/web
-
Implemented a bench marker to compare Go's HTTP Router
gocraft/web
-
Why not custom Context type ?
I was using a custom context type before introduction of Context in the stdlib. I was inspired by https://github.com/gocraft/web . Of course i call it ctx Context... And pass it to each handlers and so on. It works, i've no issue with this since years.
What are some alternatives?
go-router-benchmark - Benchmark tests for http router implemented in golang.
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
httptreemux - High-speed, flexible tree-based HTTP router for Go.
CORS - Go net/http configurable handler to handle CORS requests
bon - Go http router
chi - lightweight, idiomatic and composable router for building Go HTTP services
denco - The fast and flexible HTTP request router for Go
Echo - High performance, minimalist Go web framework
Revel - A high productivity, full-stack web framework for the Go language.
GoRouter - Go Server/API micro framework, HTTP request router, multiplexer, mux
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket: