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:
Steffen Vogel
2023-08-11 14:42:20 +02:00
parent c36d1329c4
commit cfbfdf8cd5
28 changed files with 73 additions and 61 deletions

View File

@@ -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{}