From 5afd5faf968cccb09e227c076288b2d09c0f603e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 24 Jan 2024 11:46:04 -0800 Subject: [PATCH] sort internal imports separately from external --- cmd/web/routes.go | 5 +++-- internal/config/config.go | 3 ++- internal/td/td.go | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/web/routes.go b/cmd/web/routes.go index 9e8f111..7feb5d6 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -3,10 +3,11 @@ package main import ( "net/http" - "git.burning.moe/celediel/burning.moe/internal/config" - "git.burning.moe/celediel/burning.moe/internal/handlers" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" + + "git.burning.moe/celediel/burning.moe/internal/config" + "git.burning.moe/celediel/burning.moe/internal/handlers" ) // routes handles all of the HTTP setup. Middleware is enabled, diff --git a/internal/config/config.go b/internal/config/config.go index bff5efd..205053f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -5,9 +5,10 @@ import ( "os" "time" - "git.burning.moe/celediel/burning.moe/internal/models" "github.com/charmbracelet/log" "github.com/ilyakaznacheev/cleanenv" + + "git.burning.moe/celediel/burning.moe/internal/models" ) // AppConfig contains data to be accessed across the app. diff --git a/internal/td/td.go b/internal/td/td.go index b9bde45..c7e47d5 100644 --- a/internal/td/td.go +++ b/internal/td/td.go @@ -6,9 +6,9 @@ import ( "strings" "time" - "git.burning.moe/celediel/burning.moe/internal/models" - "github.com/ilyakaznacheev/cleanenv" + + "git.burning.moe/celediel/burning.moe/internal/models" ) const dataDir string = "./templates/data/"