router
httprouter
Our great sponsors
router | httprouter | |
---|---|---|
0 | 31 | |
21 | 15,091 | |
- | - | |
5.0 | 3.1 | |
12 months ago | 3 days ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" 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.
router
We haven't tracked posts mentioning router yet.
Tracking mentions began in Dec 2020.
httprouter
-
What mux/router to use now a days?
For a simple web app, https://github.com/julienschmidt/httprouter
-
Luciano Remes | Golang is πΌπ‘π’π€π¨π© Perfect
Take this as the high-performing router (I used this in an early demo for the company I worked for when we considered Golang). https://github.com/julienschmidt/httprouter/blob/34250257ea144905c752bfaae80d6885f190daf6/tree.go
-
Implemented a bench marker to compare Go's HTTP Router
The julienschmidt/go-http-routing-benchmark is the julienschmidt/httprouter, but maintenance seemed to have stopped in recent years, so I decided to create my own benchmarker and implement it. I decided to implement bench markers.
-
Standard library, Fiber, Iris, Gin, ... where does one even begin with writing production web apps in Go?
As another aside, I will actively discourage Iris. https://github.com/julienschmidt/httprouter/issues/148 https://www.reddit.com/r/golang/comments/b481q7/a_warning_about_githubcomkatarasiris/
-
go-doudou released v1.3.2 with officially supporting for grpc
Add NewHttpRouterSrv api for using httprouter (which is used by gin) as router
-
Does Go have a widely used framework, or it's used without anything?
I'll check (and I extensively use) httprouter along the stdlib.
-
What is the best microservices framework in Go?
I prefer to use either https://github.com/gin-gonic/gin, vanilla go http handlers around https://github.com/julienschmidt/httprouter, or wrap the forementioned http router with a extension that allows my handlers to return errors and/or response models.
-
Why I love Go
Agreed, but I now use this httprouter pkg in every Go webservice project now. It's one of only a few third-party dependencies for most of my Go projects too because of how bountiful the stdlib is.
-
Recommended http helper libraries
May I suggest using this httprouter for router and this for middleware Alice
-
japi is a JSON HTTP API go library with generics
Minimal dependencies: julienschmidt/httprouter and goccy/go-json
What are some alternatives?
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.
chi - lightweight, idiomatic and composable router for building Go HTTP services
mux - A powerful HTTP router and URL matcher for building Go web servers with π¦
Echo - High performance, minimalist Go web framework
fasthttp - Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
Fiber - β‘οΈ Express inspired web framework written in Go
fasthttprouter - A high performance fasthttp request router that scales well
go-http-routing-benchmark - Go HTTP request router and web framework benchmark
Goji - Goji is a minimalistic and flexible HTTP request multiplexer for Go (golang)
Iris - The fastest HTTP/2 Go Web Framework. New, modern, easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :leaves: :rocket: | θ°’θ°’ | #Go
Bone - Lightning Fast HTTP Multiplexer
negroni - Idiomatic HTTP Middleware for Golang