Browse Source

Add example MatcherFunc

pull/15/head
Aaron Yodaiken 13 years ago
parent
commit
bb851ab75f
  1. 4
      doc.go

4
doc.go

@ -87,7 +87,9 @@ There are several other matchers that can be added. To match path prefixes:
...or to use a custom matcher function: ...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: ...and finally, it is possible to combine several matchers in a single route:

Loading…
Cancel
Save