mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-12-24 06:18:40 +08:00
feat: Upgrade to Go 1.21 and eliminate golang.org/x/exp dependency
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
"reflect"
|
||||
|
||||
kmaps "github.com/knadh/koanf/maps"
|
||||
"golang.org/x/exp/maps"
|
||||
|
||||
mapsx "github.com/stv0g/cunicu/pkg/types/maps"
|
||||
slicesx "github.com/stv0g/cunicu/pkg/types/slices"
|
||||
)
|
||||
|
||||
@@ -26,8 +26,8 @@ func DiffMap(oldMap, newMap map[string]any) map[string]Change {
|
||||
|
||||
func diffMap(oldMap, newMap map[string]any) map[string]Change {
|
||||
added, removed, kept := slicesx.Diff(
|
||||
maps.Keys(oldMap),
|
||||
maps.Keys(newMap),
|
||||
mapsx.Keys(oldMap),
|
||||
mapsx.Keys(newMap),
|
||||
)
|
||||
|
||||
changes := map[string]Change{}
|
||||
|
||||
Reference in New Issue
Block a user