|
@@ -61,6 +61,8 @@ type Router struct { |
|
|
// This has no effect when go1.7+ is used, since the context is stored
|
|
|
// on the request itself.
|
|
|
KeepContext bool
|
|
|
+ // Another field
|
|
|
+ AnotherField bool
|
|
|
// see Router.UseEncodedPath(). This defines a flag for all routes.
|
|
|
useEncodedPath bool
|
|
|
}
|
|
@@ -77,6 +79,7 @@ type Router struct { |
|
|
// (eg: not found) has a registered handler, the handler is assigned to the Handler
|
|
|
// field of the match argument.
|
|
|
func (r *Router) Match(req *http.Request, match *RouteMatch) bool {
|
|
|
+ fmt.Println("hello world!!")
|
|
|
for _, route := range r.routes {
|
|
|
if route.Match(req, match) {
|
|
|
return true
|
|
|
comment