| 1 |
Source: golang-github-gorilla-mux |
| 2 |
Section: golang |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 5 |
Uploaders: Arnaud Rebillout <[email protected]>, |
| 6 |
Tim Potter <[email protected]>, |
| 7 |
Anthony Fok <[email protected]>, |
| 8 |
Rules-Requires-Root: no |
| 9 |
Build-Depends: debhelper-compat (= 13), |
| 10 |
dh-golang, |
| 11 |
golang-any |
| 12 |
Testsuite: autopkgtest-pkg-go |
| 13 |
Standards-Version: 4.6.2 |
| 14 |
Homepage: https://github.com/gorilla/mux |
| 15 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-gorilla-mux.git |
| 16 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-gorilla-mux |
| 17 |
XS-Go-Import-Path: github.com/gorilla/mux |
| 18 |
|
| 19 |
Package: golang-github-gorilla-mux-dev |
| 20 |
Architecture: all |
| 21 |
Depends: ${misc:Depends} |
| 22 |
Multi-Arch: foreign |
| 23 |
Description: powerful URL router and dispatcher for golang |
| 24 |
Package gorilla/mux implements a request router and dispatcher. |
| 25 |
. |
| 26 |
The name mux stands for "HTTP request multiplexer". Like the standard |
| 27 |
http.ServeMux, mux.Router matches incoming requests against a list of |
| 28 |
registered routes and calls a handler for the route that matches the URL |
| 29 |
or other conditions. The main features are: |
| 30 |
. |
| 31 |
* Requests can be matched based on URL host, path, path prefix, schemes, |
| 32 |
header and query values, HTTP methods or using custom matchers. |
| 33 |
* URL hosts and paths can have variables with an optional regular expression. |
| 34 |
* Registered URLs can be built, or "reversed", which helps maintaining |
| 35 |
references to resources. |
| 36 |
* Routes can be used as subrouters: nested routes are only tested if the |
| 37 |
parent route matches. This is useful to define groups of routes that share |
| 38 |
common conditions like a host, a path prefix or other repeated attributes. |
| 39 |
As a bonus, this optimizes request matching. |
| 40 |
* It implements the http.Handler interface so it is compatible with the |
| 41 |
standard http.ServeMux. |