gorilla/mux
View on GitHub ↗ ★ 21,833 Go
Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍
37 mentions on Hacker News by 31 people: 7 stories, 30 comments · first 2013-01-01 · latest 2025-05-11
20082026
-
…a few transitive deps and gorilla/mux has none: https://github.com/spf13/cobra/blob/main/go.sum https://github.com/gorilla/mux/blob/main/go.mod If I compare that with express.js or commander its a very different story (though, in fairness…
comment by tuckerman · 2025-05-11 · in Leaving Google -
…- https://github.com/go-chi/chi 19k stars - https://github.com/julienschmidt/httprouter 16k stars - https://github.com/gorilla/mux 21k stars - https://github.com/spf13/pflag 2.6k stars - https://github.com/google/uuid 5.6k starts Many…
comment by hu3 · 2025-05-09 · in Rust’s dependencies are starting to worry me -
We use a mux router https://github.com/gorilla/mux#matching-routes
comment by kareemsabri · 2022-08-17 · in Ask HN: Anyone here switch to Go for building (REST) APIs? -
We've got a mix of a few but are recommending use of https://github.com/gorilla/mux due to it using the net/http interfaces and types, great performance and some configurability which can be handy. In particular, my team is using it in…
comment by jamietanna · 2022-07-22 · in Ask HN: What GO web framework do you use? -
…Here's the meta tag for the gorilla router, a common http routing library: <meta name="go-import" content="github.com/gorilla/mux git https://github.com/gorilla/mux.git"> The tool is designed so that you can serve modules directly from…
comment by zemo · 2021-12-15 · in Go Replaces Interface{} with 'Any' -
…dependencies, the garbage that is the Node.js ecosystem. [0]: https://echo.labstack.com/ [1]: https://github.com/gorilla/mux
comment by mr-karan · 2021-11-23 · in Ask HN: Simplest stack to build web apps in 2021? -
…refactoring... worth the expense over VSCode. Generally I use standard library, with the exception being github.com/gorilla/mux Gorilla Mux for routing because it removes so much boilerplate. I do however use Python for all HTTP…
comment by boyter · 2021-03-25 · in Ask HN: Are you using Go for web development? -
We use it. Gorilla mux ( https://github.com/gorilla/mux ) to route requests plus some in-house handler chains that log, check JWT tokens, etc. We have a Go client library which accesses the web API, so we can do testing without having to…
comment by floren · 2021-03-25 · in Ask HN: Are you using Go for web development? -
…maybe Terraform? On the other, more modular side, try something like the Gorilla toolkit e.g. https://github.com/gorilla/mux/ I'll be honest, I rarely use channels other than for timeouts/deadlines.
comment by hactually · 2020-05-13 · in What's Coming in Go 1.15 -
…setup dependency injection. Generally a flow like config=>databases=>models=>routes=>server. - https://github.com/gorilla/mux for routing and https://github.com/swaggo/swag for documentation - As for HTTP frameworks I just use the standard…
comment by comment_out · 2020-04-16 · in Ask HN: How are you using Go to write production-grade back end services? -
…been powering SPA with go backend, and found gorilla mux [0] to be quite reliable for years. - [0] https://github.com/gorilla/mux
comment by stockkid · 2018-12-17 · in Vue.js and Go example project -
…scales quite nicely with your code IMO. I use a couple of thin layers over net/http: Gorilla mux: https://github.com/gorilla/mux ... Gets me easy route params and HTTP method filtering. Negroni for middleware:…
comment by ereyes01 · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
https://ponzu-cms.org for back end & https://github.com/gorilla/mux if needs a Go front end.
comment by nilslice · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
https://github.com/gorilla/mux
comment by saiongole · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
…can be either an absolute commit hash or a relative one like a branch name. ie. https://sourcegraph.com/github.com/gorilla/mux@master/-/blob...
comment by zeusk · 2017-05-04 · in Sourcegraph now running on an in-browser VS Code -
Even a web framework isn't necessary. Most people get around that nastiness using gorilla/mux: https://github.com/gorilla/mux
comment by viiralvx · 2017-03-22 · in How I Start: Go (2014) -
…ph.com/github.com/golang/go@bb41b4d599f5758... - Popular gorilla/mux routing library: https://sourcegraph.com/github.com/gorilla/mux@34bf6dc9faa08... - Gorp, a popular ORM-ish library: https://sourcegraph.com/github.com/go-gorp/gorp@033bf79…
comment by beliu · 2017-02-10 · in Go Web Examples -
…Gorilla framework's Mux [0] has been around awhile and is quite popular for routing in Go. [0] https://github.com/gorilla/mux
comment by gkop · 2016-12-05 · in Mux – A lightweight, fast HTTP request router for Go -
…for early access.) Try out jumping to definition and seeing hovers at https://sourcegraph.com/github.com/gorilla/mux/-/blob/mux.go... . This helps you understand code that you're browsing. Check out global usage examples and refs of any…
comment by sqs · 2016-09-19 · in Building Sourcegraph - A large-scale code search engine in Go (2014) -
Exactly! You mean like this? https://sourcegraph.com/github.com/gorilla/mux@9fa818a44c2bf...
comment by beliu · 2016-06-07 · in Toward a URL for every function -
…with putting together HTTP server-side apps in Go: - Gorilla mux for defining templated routes: https://github.com/gorilla/mux - Negroni for HTTP route Middlewares: https://github.com/codegangsta/negroni For testing HTTP server-side Go…
comment by ereyes01 · 2016-05-02 · in Go best practices, six years in -
…replied - net/http is enough to build something that's good enough. In addition, there is also: https://github.com/gorilla/mux , which complements net/http very well.
comment by dsies · 2016-03-28 · in Building Web Apps in Go -
…for now! Godoc + tooltips + jump-to-def + usage examples. See this, for example: https://sourcegraph.com/github.com/gorilla/mux/.godoc
comment by beliu · 2015-03-13 · in Godoc is down -
…single page format. It really fits go code repositories as they are usually small. e.g. http://readcode.in/github.com/gorilla/mux
comment by minhajuddin · 2014-12-07 · in When in Go, do as Gophers do -
actually nginx config is fine. I wasn't properly using "github.com/gorilla/mux". Sorting it out now. cheers
comment by wilsonfiifi · 2013-06-01 · in Show HN: CMS Server written in Go (alpha) -
…Go project. #1. Switch to the go project directory #2. Fork for the new feature (adding_mux) #3. Run go get github.com/gorilla/mux #4. Add import "github.com/gorilla/mux" to my code, use mux for great goodness #5. Commit my code (this is…
comment by MetaCosm · 2013-05-31 · in Golang dependency hell in Haunts The Manse game -
What? It ONLY looks for localized copies. When you have import "github.com/gorilla/mux" it will look in $GOROOT/src/pkg/github.com/gorilla/mux and $GOPATH/src/github.com/gorilla/mux if it is missing, you can fulfill it with go get…
comment by MetaCosm · 2013-05-31 · in Golang dependency hell in Haunts The Manse game -
…https://github.com/rcrowley/goagain and the routing I found pretty straightforward with something like github.com/gorilla/mux so there are solutions, they're just not always as fully baked or as mature as you'd find in other ecosystems.…
comment by grey-area · 2013-03-07 · in Gotchas, Irritants and Warts in Go Web Development -
…becomes widespread), or by changing import to take an argument for the version. So something like: import "github.com/gorilla/mux/1.0.3" or import "github.com/gorilla/mux", ~> "1.0.3" which would let you specify any minor updates say and…
comment by grey-area · 2013-02-23 · in Go as an alternative to Node.js for Very Fast Servers -
…documentation is also available on GoDoc: http://godoc.org/github.com/gorilla/securecookie http://godoc.org/github.com/gorilla/mux
comment by BarkMore · 2013-01-01 · in Thoughts on Go after writing 3 websites