Skip to content

Commit

Permalink
chore: linter, format
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Sep 28, 2023
1 parent 67bb6fb commit 6855b87
Show file tree
Hide file tree
Showing 9 changed files with 639 additions and 566 deletions.
3 changes: 2 additions & 1 deletion cache/desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ package cache
import (
"context"
"fmt"
"github.com/Vilsol/go-pob/utils"
"io"
"log/slog"
"os"
"path/filepath"
"time"

"github.com/Vilsol/go-pob/utils"

"gopkg.in/djherbis/fscache.v0"
)

Expand Down
5 changes: 3 additions & 2 deletions calculator/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package calculator

import (
"context"
"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"
"os"
"testing"

"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"

"github.com/MarvinJWendt/testza"

"github.com/Vilsol/go-pob/builds"
Expand Down
5 changes: 3 additions & 2 deletions calculator/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package calculator

import (
"context"
"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"
"os"
"testing"

"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"

"github.com/MarvinJWendt/testza"

"github.com/Vilsol/go-pob/builds"
Expand Down
5 changes: 3 additions & 2 deletions calculator/mod_parser.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package calculator

import (
utils2 "github.com/Vilsol/go-pob-data/utils"
"golang.org/x/exp/slices"
"regexp"
"strings"

utils2 "github.com/Vilsol/go-pob-data/utils"
"golang.org/x/exp/slices"

"github.com/Vilsol/go-pob-data/poe"

"github.com/Vilsol/go-pob/data"
Expand Down
5 changes: 3 additions & 2 deletions calculator/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package calculator

import (
"context"
"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"
"os"
"testing"

"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"

"github.com/MarvinJWendt/testza"

"github.com/Vilsol/go-pob/builds"
Expand Down
5 changes: 3 additions & 2 deletions config/logging.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package config

import (
"github.com/Vilsol/go-pob/utils"
"github.com/lmittmann/tint"
"log/slog"
"os"
"time"

"github.com/Vilsol/go-pob/utils"
"github.com/lmittmann/tint"
)

func InitLogging(withTime bool) {
Expand Down
2 changes: 2 additions & 0 deletions data/raw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package raw

import (
"context"

"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"
)
Expand All @@ -11,6 +12,7 @@ const LatestVersion = "3.18"
type UpdateFunc func(data string)

func InitializeAll(version string, updateFunc UpdateFunc) error {
//nolint:wrapcheck
return poe.InitializeAll(context.Background(), version, cache.Disk(), func(data string) {
updateFunc(data)
})
Expand Down
3 changes: 2 additions & 1 deletion data/tree_graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package data

import (
"context"
"testing"

"github.com/Vilsol/go-pob-data/poe"
"github.com/Vilsol/go-pob/cache"
"testing"

"github.com/Vilsol/go-pob/config"
"github.com/Vilsol/go-pob/data/raw"
Expand Down
Loading

0 comments on commit 6855b87

Please sign in to comment.