Upgrade Go to 1.23 (#3190)

* Upgrade to Golang 1.23rc1

* Fix imports

* Go 1.23 final version

* Fix lint compatibility with ci-goreleaser
This commit is contained in:
Deluan Quintão
2024-08-19 17:47:54 -04:00
committed by GitHub
parent 0c33523f45
commit c4bd0e67fa
6 changed files with 17 additions and 15 deletions
+4 -4
View File
@@ -2,13 +2,13 @@ package tests
import (
"errors"
"maps"
"slices"
"time"
"github.com/google/uuid"
"github.com/navidrome/navidrome/utils/slice"
"golang.org/x/exp/maps"
"github.com/navidrome/navidrome/model"
"github.com/navidrome/navidrome/utils/slice"
)
func CreateMockMediaFileRepo() *MockMediaFileRepo {
@@ -56,7 +56,7 @@ func (m *MockMediaFileRepo) GetAll(...model.QueryOptions) (model.MediaFiles, err
if m.err {
return nil, errors.New("error")
}
values := maps.Values(m.data)
values := slices.Collect(maps.Values(m.data))
return slice.Map(values, func(p *model.MediaFile) model.MediaFile {
return *p
}), nil