mux
DISCONTINUED
httprouter
Our great sponsors
mux | httprouter | |
---|---|---|
78 | 33 | |
17,948 | 15,091 | |
- | - | |
2.6 | 3.1 | |
4 months ago | 8 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" 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.
mux
-
mux VS Don - a user suggested alternative
2 projects | 15 Mar 2023
-
Using Redis Caching and the Redis CLI to Improve API Performance
We will be using Gorilla Mux to create the APIs locally. Gorilla Mux implements a request router and dispatcher to match the incoming requests.
-
gorilla fork
https://github.com/gorilla/mux/issues/659 Don't get me wrong, I appreciate the good intentions but why didn't you become a maintainer of the original project?
-
Implemented a bench marker to compare Go's HTTP Router
gorilla/mux
-
State of Rust for web backends
popular libraries looking for new maintainers and getting eventually archived ( https://github.com/gorilla/mux )
-
Gorilla Web Toolkit is now in archive only mode
From the devs:
Initially found out about this via this issue thread here where they were looking for new maintainers.
-
Does Go have an equivalent to Python's Flask and Django?
The maintainer of Gorilla is in the process of dropping the project (he just doesnβt have enough time for it anymore) and is looking for new maintainers. A number of volunteers have replied to the issue but it seems like nobody has been chosen yet even though the call for new maintainers has been up for over a year.
-
Gorilla toolkit maintainers are stepping down and have been looking for new maintainers. The project could otherwise be archived.
According to maintainer requirements provided here, it's pretty obvious that it's quite hard to find new maintainers.
httprouter
-
Tools besides Go for a newbie
IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here
-
shift: high-performance HTTP router for Go
Also, you seemed to have copied the path.go from Julien Schmidt's httprouter without even thanking or mentioning it in the README, which I think is not a good attitude. Yes, httprouter is BSD-3-Clause licensed, but showing the people that you took the code from some respect, should be a absolute must, in my opinon.
-
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.
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.
Fiber - β‘οΈ Express inspired web framework written in Go
Echo - High performance, minimalist Go web framework
chi - lightweight, idiomatic and composable router for building Go HTTP services
fasthttp - Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :leaves: :rocket: | θ°’θ°’ | #Go
Beego - beego is an open-source, high-performance web framework for the Go programming language.