diff options
author | Franck Cuny <franck@lumberjaph.net> | 2013-04-21 16:02:18 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2013-04-21 16:02:18 -0700 |
commit | 4a377d7884096c4f7e1a5c9bf835f2f79ea7803b (patch) | |
tree | 7bec669de4e6d73e6051fdd950d5cb67218c4829 /router_test.go | |
parent | Simplify the dispatch's workflow. (diff) | |
download | path-router-4a377d7884096c4f7e1a5c9bf835f2f79ea7803b.tar.gz |
Apply gofmt
Diffstat (limited to 'router_test.go')
-rw-r--r-- | router_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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)) } } |