Lint: Fix import sorting

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-11-22 17:31:05 +01:00
parent c18b3f2368
commit c149320fda
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
8 changed files with 22 additions and 14 deletions

7
api.go
View file

@ -9,13 +9,14 @@ import (
"strings" "strings"
"time" "time"
"github.com/Luzifer/go-latestver/internal/config"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go-latestver/internal/fetcher"
"github.com/gorilla/feeds" "github.com/gorilla/feeds"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/go-latestver/internal/config"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go-latestver/internal/fetcher"
) )
func buildFullURL(u *url.URL) string { func buildFullURL(u *url.URL) string {

View file

@ -4,10 +4,11 @@ import (
"os" "os"
"time" "time"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go-latestver/internal/fetcher"
"github.com/pkg/errors" "github.com/pkg/errors"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go-latestver/internal/fetcher"
) )
var ErrCatalogEntryNotFound = errors.New("catalog entry not found") var ErrCatalogEntryNotFound = errors.New("catalog entry not found")

View file

@ -5,10 +5,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/Luzifer/go_helpers/v2/fieldcollection"
"github.com/pkg/errors" "github.com/pkg/errors"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"github.com/Luzifer/go_helpers/v2/fieldcollection"
) )
type ( type (

View file

@ -4,13 +4,14 @@ import (
"context" "context"
"time" "time"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go_helpers/v2/fieldcollection"
"github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/storage/memory" "github.com/go-git/go-git/v5/storage/memory"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go_helpers/v2/fieldcollection"
) )
type ( type (

View file

@ -8,9 +8,10 @@ import (
"os" "os"
"time" "time"
"github.com/pkg/errors"
"github.com/Luzifer/go-latestver/internal/database" "github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go_helpers/v2/fieldcollection" "github.com/Luzifer/go_helpers/v2/fieldcollection"
"github.com/pkg/errors"
) )
const githubHTTPTimeout = 2 * time.Second const githubHTTPTimeout = 2 * time.Second

View file

@ -5,12 +5,13 @@ import (
"regexp" "regexp"
"time" "time"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go_helpers/v2/fieldcollection"
"github.com/antchfx/htmlquery" "github.com/antchfx/htmlquery"
"github.com/antchfx/xpath" "github.com/antchfx/xpath"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/html" "golang.org/x/net/html"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go_helpers/v2/fieldcollection"
) )
var htmlFetcherDefaultRegex = `(v?(?:[0-9]+\.?){2,})` var htmlFetcherDefaultRegex = `(v?(?:[0-9]+\.?){2,})`

View file

@ -5,9 +5,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/pkg/errors"
"github.com/Luzifer/go-latestver/internal/database" "github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go_helpers/v2/fieldcollection" "github.com/Luzifer/go_helpers/v2/fieldcollection"
"github.com/pkg/errors"
) )
type ( type (

View file

@ -5,10 +5,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go-latestver/internal/fetcher"
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/go-latestver/internal/database"
"github.com/Luzifer/go-latestver/internal/fetcher"
) )
var schedulerRunActive bool var schedulerRunActive bool