Compare commits

...

1 Commits

Author SHA1 Message Date
8ebda6fb3a v0.0.123 2023-05-25 18:20:31 +02:00

View File

@@ -47,3 +47,11 @@ func CopyMap[K comparable, V any](a map[K]V) map[K]V {
}
return result
}
func ForceMap[K comparable, V any](v map[K]V) map[K]V {
if v == nil {
return make(map[K]V, 0)
} else {
return v
}
}