Imports split into three groups: standard library, third-party, then this project's own packages

gci is configured with the sections standard, default and localmodule, and
goimports with the module path as its local prefix, so both formatters
agree.
This commit is contained in:
bwilliams committed 2026-10-14 17:40:06 +01:00
1 parent c9f42b62ad
commit e19c8c2b69
35 files changed
+85 -39

No files matched your search

+3 -2
View File
@@ -10,10 +10,11 @@ import (
"path/filepath"
"time"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/store"
"github.com/pressly/goose/v3"
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/store"
)
// openMigrator loads the configuration and returns a migrator over the
+2 -1
View File
@@ -5,9 +5,10 @@ import (
"fmt"
"log/slog"
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/store"
"github.com/spf13/cobra"
)
func commandDown(opts *cli.Options) *cobra.Command {
+2 -1
View File
@@ -9,8 +9,9 @@ package migrate
import (
"log/slog"
"git.avsdev.uk/Go/job-search/internal/cli"
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
)
// NewCommand returns the "migrate" command, which migrates the database schema (see
+2 -1
View File
@@ -5,10 +5,11 @@ import (
"path/filepath"
"testing"
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/cli/cmdtest"
"git.avsdev.uk/Go/job-search/internal/store"
"github.com/spf13/cobra"
)
// Run with: go test -tags sqlite_fts5 ./...
+3 -2
View File
@@ -8,10 +8,11 @@ import (
"path/filepath"
"text/tabwriter"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/store"
"github.com/pressly/goose/v3"
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/store"
)
// printStatus lists every migration as applied (with when) or pending,
+2 -1
View File
@@ -4,9 +4,10 @@ import (
"fmt"
"log/slog"
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
"git.avsdev.uk/Go/job-search/internal/store"
"github.com/spf13/cobra"
)
// runStepUp applies steps pending migrations (0 means all), printing each one