Use new slices package from Go standard lib
This commit is contained in:
+1
-1
@@ -2,10 +2,10 @@ package model
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"slices"
|
||||
"time"
|
||||
|
||||
"github.com/navidrome/navidrome/utils/slice"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
type Album struct {
|
||||
|
||||
+1
-2
@@ -3,9 +3,8 @@ package model
|
||||
import (
|
||||
"mime"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var excludeAudioType = []string{
|
||||
|
||||
+1
-1
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"mime"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -13,7 +14,6 @@ import (
|
||||
"github.com/navidrome/navidrome/consts"
|
||||
"github.com/navidrome/navidrome/utils"
|
||||
"github.com/navidrome/navidrome/utils/slice"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
type MediaFile struct {
|
||||
|
||||
+1
-1
@@ -2,12 +2,12 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"slices"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/navidrome/navidrome/model/criteria"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
type Playlist struct {
|
||||
|
||||
Reference in New Issue
Block a user