diff --git a/cmd/traefik/anonymize/anonymize_doOnJSON_test.go b/cmd/traefik/anonymize/anonymize_doOnJSON_test.go index 87f43d125..91ebbf05f 100644 --- a/cmd/traefik/anonymize/anonymize_doOnJSON_test.go +++ b/cmd/traefik/anonymize/anonymize_doOnJSON_test.go @@ -1,8 +1,9 @@ package anonymize import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func Test_doOnJSON(t *testing.T) { diff --git a/middlewares/headers.go b/middlewares/headers.go index ee2368949..de4a251fb 100644 --- a/middlewares/headers.go +++ b/middlewares/headers.go @@ -3,8 +3,9 @@ package middlewares //Middleware based on https://github.com/unrolled/secure import ( - "github.com/containous/traefik/types" "net/http" + + "github.com/containous/traefik/types" ) // HeaderOptions is a struct for specifying configuration options for the headers middleware. diff --git a/middlewares/headers_test.go b/middlewares/headers_test.go index 54dc1e4de..a78a0c2ca 100644 --- a/middlewares/headers_test.go +++ b/middlewares/headers_test.go @@ -3,11 +3,12 @@ package middlewares //Middleware tests based on https://github.com/unrolled/secure import ( - "github.com/containous/traefik/testhelpers" - "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" "testing" + + "github.com/containous/traefik/testhelpers" + "github.com/stretchr/testify/assert" ) var myHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {