From c7d2d82d01da99450a7f862a1cce41efff9b5c81 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Sun, 7 Jun 2015 04:26:30 +0200 Subject: [PATCH] gofmt --- gin.go | 2 +- gin_test.go | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gin.go b/gin.go index cf48c337..5a87d566 100644 --- a/gin.go +++ b/gin.go @@ -63,7 +63,7 @@ type ( RouteInfo struct { Method string - Path string + Path string } ) diff --git a/gin_test.go b/gin_test.go index 76be3b9a..9d8fffa1 100644 --- a/gin_test.go +++ b/gin_test.go @@ -181,7 +181,7 @@ func compareFunc(t *testing.T, a, b interface{}) { } func TestListOfRoutes(t *testing.T) { - handler := func(c *Context){} + handler := func(c *Context) {} router := New() router.GET("/favicon.ico", handler) router.GET("/", handler) @@ -198,31 +198,31 @@ func TestListOfRoutes(t *testing.T) { assert.Len(t, list, 7) assert.Contains(t, list, RouteInfo{ Method: "GET", - Path: "/favicon.ico", + Path: "/favicon.ico", }) assert.Contains(t, list, RouteInfo{ Method: "GET", - Path: "/", + Path: "/", }) assert.Contains(t, list, RouteInfo{ Method: "GET", - Path: "/users/", + Path: "/users/", }) assert.Contains(t, list, RouteInfo{ Method: "GET", - Path: "/users/:id", + Path: "/users/:id", }) assert.Contains(t, list, RouteInfo{ Method: "POST", - Path: "/users/:id", + Path: "/users/:id", }) assert.Contains(t, list, RouteInfo{ Method: "GET", - Path: "/static/*filepath", + Path: "/static/*filepath", }) assert.Contains(t, list, RouteInfo{ Method: "HEAD", - Path: "/static/*filepath", + Path: "/static/*filepath", }) }