Fix maputils
This commit is contained in:
parent
83e935df8a
commit
66a118e6ef
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
package maps
|
||||
package maputils
|
||||
|
||||
import "gitlab.com/beckersam/goutils/pkg/sliceutils"
|
||||
import "gitlab.com/mstarongitlab/goutils/sliceutils"
|
||||
|
||||
// MapMap applies a given function to every key-value pair of a map.
|
||||
// The returned map's value type may be different from the type of the inital map's value.
|
||||
|
@ -42,7 +42,7 @@ func CompareMap[K, V comparable](a, b map[K]V) bool {
|
|||
return false
|
||||
}
|
||||
// Check if both maps have the same keys
|
||||
if !sliceutils.CompareUnorderedSlice(KeysFromMap(a), KeysFromMap(b)) {
|
||||
if !sliceutils.CompareUnordered(KeysFromMap(a), KeysFromMap(b)) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue