Top 4.7% dependent repos on proxy.golang.org
proxy.golang.org : github.com/sharpvik/mux
Package mux seeks to provide customizable and convenient internal routing for Go's http.Server. When building a server-side app or a REST API, you may wish to implement complex routing mechanisms that allow you to effectively process incoming requests by checking their signatures against different routes with preset filters. There already exist a few packages that provide this functionality. However, there is a catch: those packages are written as though the only things your handler functions are going to be working with are http.ResponseWriter and http.Request sent by the user. In reality, you may wish to query a database and/or log some data through log.Logger. Of course, there are ways to allow a function to acces those interfaces via a global variable or something like that, but those ways are a pain to write tests for. In this package, you can find the Router sturct that is written in a way that resolves those problems by supporting the router-embedded context.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/sharpvik/mux
License: MPL-2.0
Latest release: about 4 years ago
First release: over 4 years ago
Namespace: github.com/sharpvik
Dependent packages: 1
Dependent repositories: 1
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 18 days ago