sort internal imports separately from external
This commit is contained in:
parent
5021bb256d
commit
5afd5faf96
|
@ -3,10 +3,11 @@ package main
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"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"
|
||||||
"github.com/go-chi/chi/v5/middleware"
|
"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,
|
// routes handles all of the HTTP setup. Middleware is enabled,
|
||||||
|
|
|
@ -5,9 +5,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.burning.moe/celediel/burning.moe/internal/models"
|
|
||||||
"github.com/charmbracelet/log"
|
"github.com/charmbracelet/log"
|
||||||
"github.com/ilyakaznacheev/cleanenv"
|
"github.com/ilyakaznacheev/cleanenv"
|
||||||
|
|
||||||
|
"git.burning.moe/celediel/burning.moe/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AppConfig contains data to be accessed across the app.
|
// AppConfig contains data to be accessed across the app.
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.burning.moe/celediel/burning.moe/internal/models"
|
|
||||||
|
|
||||||
"github.com/ilyakaznacheev/cleanenv"
|
"github.com/ilyakaznacheev/cleanenv"
|
||||||
|
|
||||||
|
"git.burning.moe/celediel/burning.moe/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
const dataDir string = "./templates/data/"
|
const dataDir string = "./templates/data/"
|
||||||
|
|
Loading…
Reference in a new issue