|
@@ -79,7 +79,7 @@ type Router struct { |
|
// (eg: not found) has a registered handler, the handler is assigned to the Handler
|
|
// (eg: not found) has a registered handler, the handler is assigned to the Handler
|
|
// field of the match argument.
|
|
// field of the match argument.
|
|
func (r *Router) Match(req *http.Request, match *RouteMatch) bool {
|
|
func (r *Router) Match(req *http.Request, match *RouteMatch) bool {
|
|
- fmt.Println("hello world!")
|
|
+ fmt.Println("hello world!!")
|
|
for _, route := range r.routes {
|
|
for _, route := range r.routes {
|
|
if route.Match(req, match) {
|
|
if route.Match(req, match) {
|
|
return true
|
|
return true
|
|
|