diff options
author | Franck Cuny <franck@lumberjaph.net> | 2013-05-11 15:26:12 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2013-05-11 15:26:12 -0700 |
commit | d09a0ae63baeb59db05f7e42004d50247894e8bb (patch) | |
tree | 3ffc289e220889487cbdae7916ef57c983a04282 /route.go | |
parent | The response object is passed to the matching function. (diff) | |
download | path-router-d09a0ae63baeb59db05f7e42004d50247894e8bb.tar.gz |
Fmt
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{} } |