mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-16 16:34:21 +00:00
feat: add ExtendMap function to merge two maps
This commit is contained in:
parent
2b85c7fd97
commit
6635647061
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue