diff options
Diffstat (limited to 'route.go')
-rw-r--r-- | route.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/route.go b/route.go index 0aea94c..49d627d 100644 --- a/route.go +++ b/route.go @@ -1,12 +1,12 @@ package router import ( + "github.com/franckcuny/web-request" "regexp" "strings" - "github.com/franckcuny/web-request" ) -type fn func(*request.Request, *request.Response) (error) +type fn func(*request.Request, *request.Response) error type fns map[string]fn type Route struct { @@ -61,7 +61,7 @@ func (self *Route) Match(method string, components []string) *Match { if self.Defaults != nil { mapping = self.Defaults - }else{ + } else { mapping = map[string]string{} } |