From 4a377d7884096c4f7e1a5c9bf835f2f79ea7803b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 21 Apr 2013 16:02:18 -0700 Subject: Apply gofmt --- router_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'router_test.go') diff --git a/router_test.go b/router_test.go index 6003c28..497f547 100644 --- a/router_test.go +++ b/router_test.go @@ -1,10 +1,10 @@ package mooh import ( + "fmt" "net/http" "net/url" "testing" - "fmt" ) func testRoute(req *Request) (Response, error) { @@ -45,7 +45,7 @@ func TestMatch(t *testing.T) { m, _ := router.Match(r) if m == nil { t.Fatal() - }else{ + } else { fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.Path)) } } @@ -67,7 +67,7 @@ func TestMatchOptional(t *testing.T) { m, _ := router.Match(r) if m == nil { t.Fatal() - }else{ + } else { fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.Path)) } } @@ -82,7 +82,7 @@ func TestAmbigiousSimple(t *testing.T) { m, _ := router.Match(r) if m == nil { t.Fatal() - }else{ + } else { fmt.Println(fmt.Sprintf("%s match for %s", r.URL.Path, m.Path)) } } -- cgit 1.4.1