From b61402c458ef5fd36744a5c32c30695269ad098b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 21 Apr 2013 16:46:20 -0700 Subject: Apply gofmt --- request.go | 2 +- route.go | 1 - 2 files changed, 1 insertion(+), 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] -- cgit 1.4.1