feat: add ExtendMap function to merge two maps

This commit is contained in:
Chigozirim Igweamaka 2025-07-15 15:35:52 +01:00
parent 2b85c7fd97
commit 6635647061

View file

@ -27,3 +27,9 @@ func GetEnv(key string, fallback ...string) string {
}
return ""
}
func ExtendMap[K comparable, V any](dest, src map[K]V) {
for k, v := range src {
dest[k] = v
}
}