chore: use go 1.23 (#14647)

This commit is contained in:
andig 2024-08-15 14:00:47 +02:00 • committed by GitHub
parent 40b6d1b7f3
commit 0f511ce93f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 27 additions and 31 deletions

View file

@ -2,10 +2,11 @@ package util
import (
"fmt"
"maps"
"slices"
"sync"
"github.com/evcc-io/evcc/util/encode"
"golang.org/x/exp/maps"
)
// Cache is a data store
@ -89,7 +90,7 @@ func (c *Cache) All() []Param {
c.mu.RLock()
defer c.mu.RUnlock()
return maps.Values(c.val)
return slices.Collect(maps.Values(c.val))
}
// Add entry to cache