Browse Source

Merge pull request #15 from yodaiken/master

Add example of a Matcher Func in documentation
Kamil Kisiel 13 years ago
parent
commit
36205eb8f1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      doc.go

+ 3
- 1
doc.go View File

@ -87,7 +87,9 @@ There are several other matchers that can be added. To match path prefixes:
...or to use a custom matcher function:
r.MatcherFunc(myFunc)
r.MatcherFunc(func(r *http.Request, rm *RouteMatch) bool {
return r.ProtoMajor == 0
})
...and finally, it is possible to combine several matchers in a single route:


Loading…
Cancel
Save