mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Use new slices
package from Go standard lib
This commit is contained in:
parent
166eb37787
commit
97c7e5daaf
9 changed files with 9 additions and 10 deletions
|
@ -2,10 +2,10 @@ package model
|
|||
|
||||
import (
|
||||
"cmp"
|
||||
"slices"
|
||||
"time"
|
||||
|
||||
"github.com/navidrome/navidrome/utils/slice"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
type Album struct {
|
||||
|
|
|
@ -3,9 +3,8 @@ package model
|
|||
import (
|
||||
"mime"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var excludeAudioType = []string{
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue