13 Commits

Author SHA1 Message Date
Roberto Santalla
53c1911da2 [feat] Add middleware support as discussed in #293 (#294)
* mux.Router now has a `Use` method that allows you to add middleware to request processing.
2018-01-16 09:23:47 -08:00
Chris Hines
c7a138dbc1 Update docs. 2017-06-02 12:31:40 -07:00
Adam Eijdenberg
392c28fe23 [bugfix] fail fast if regex is incorrectly specified using capturing groups. (#218) 2017-01-18 05:43:44 -08:00
Oliver Tonnhofer
14f5df0128 document non-capturing groups (closes #143) 2016-09-20 16:06:56 +02:00
Matt Silverlock
3b15f12d15 [docs] Add static file example to README; doc.go. (#179) 2016-08-01 08:51:14 -07:00
Matt Silverlock
02c98b3f73 [docs] Satisfied golint.
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would
  break the public API.
2016-02-28 19:32:22 -08:00
Kamil Kisiel
b0b2bc47bc Quote domain names in README.md. Use example.com instead of domain.com
Fixes #119
2015-08-13 12:01:04 -07:00
Craig Jellick
c0a5cbce5a Fix typo
Issue #16: Added regex support for matching headers

Issue #16 : Addressed code review and refactored support for regex into
a separate function

Added compiled regex to route matcher
2015-07-05 20:15:55 +10:00
Dmitri Shuralyov
9641367e95 Fix up doc formatting, use spaces for alignment (tabs are for indentation only).
This fixes issue where if user has tab width other than 4, some lines will become misaligned. For example, see the package description at https://godoc.org/github.com/gorilla/mux.
2015-04-22 12:28:32 -07:00
Andrew Williams
9d99a92775 Remove extra parentheses 2013-11-09 22:22:06 -06:00
Kamil Kisiel
b9f42e6d55 Tweak example indent 2013-03-25 15:02:51 -07:00
Aaron Yodaiken
bb851ab75f Add example MatcherFunc 2013-03-25 16:52:38 -05:00
moraes
eac83ba2c0 Initial files. 2012-10-03 01:48:17 -03:00