about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-04-21 16:46:20 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-04-21 16:46:20 -0700
commitb61402c458ef5fd36744a5c32c30695269ad098b (patch)
treea036d3b06053c41a450e047107d2db89161f9c1a
parentLet's be specific about the source of the param. (diff)
downloadpath-router-b61402c458ef5fd36744a5c32c30695269ad098b.tar.gz
Apply gofmt
-rw-r--r--request.go2
-rw-r--r--route.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/request.go b/request.go
index 49ed702..715ccac 100644
--- a/request.go
+++ b/request.go
@@ -13,7 +13,7 @@ func (self *Request) RouteParam(name string) string {
 	return self.routeParams[name]
 }
 
-func NewRequest(req *http.Request, match *Match) *Request{
+func NewRequest(req *http.Request, match *Match) *Request {
 	return &Request{
 		match.Mapping,
 		req,
diff --git a/route.go b/route.go
index e7994f7..832313b 100644
--- a/route.go
+++ b/route.go
@@ -31,7 +31,6 @@ var componentsIsOptional = regexp.MustCompile("^\\?:")
 var namedComponentsRegex = regexp.MustCompile("^:(.*)$")
 var convertComponent = regexp.MustCompile("^\\??:(.*)$")
 
-
 func (self *Route) convertComponentName(name string) string {
 	newName := convertComponent.FindStringSubmatch(name)
 	return newName[1]