about summary refs log tree commit diff
path: root/route.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-05-11 15:26:12 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-05-11 15:26:12 -0700
commitd09a0ae63baeb59db05f7e42004d50247894e8bb (patch)
tree3ffc289e220889487cbdae7916ef57c983a04282 /route.go
parentThe response object is passed to the matching function. (diff)
downloadpath-router-d09a0ae63baeb59db05f7e42004d50247894e8bb.tar.gz
Fmt
Diffstat (limited to 'route.go')
-rw-r--r--route.go6
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{}
 	}