From 6a5357f9b372d5cbc219e850b14423cdb475cbba Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Fri, 16 Feb 2018 21:28:23 +0100 Subject: [PATCH] Format & reorder imports --- auth/authentication.go | 2 +- error/handler.go | 2 +- error/handler_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/authentication.go b/auth/authentication.go index 284f7ed..d1e1460 100644 --- a/auth/authentication.go +++ b/auth/authentication.go @@ -8,7 +8,7 @@ import ( ) const ( - headerName = "X-Gotify-Key" + headerName = "X-Gotify-Key" ) // The Database interface for encapsulating database access. diff --git a/error/handler.go b/error/handler.go index 89f48a4..1447310 100644 --- a/error/handler.go +++ b/error/handler.go @@ -9,8 +9,8 @@ import ( "strings" "unicode" - "gopkg.in/go-playground/validator.v8" "github.com/gotify/server/model" + "gopkg.in/go-playground/validator.v8" ) // Handler creates a gin middleware for handling errors. diff --git a/error/handler_test.go b/error/handler_test.go index 24b4971..763fb60 100644 --- a/error/handler_test.go +++ b/error/handler_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/gin-gonic/gin" - "github.com/stretchr/testify/assert" "github.com/gotify/server/model" + "github.com/stretchr/testify/assert" ) func TestDefaultErrorInternal(t *testing.T) {