mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 12:40:12 +00:00
Initial commit
This commit is contained in:
10
common/maps/maps.go
Normal file
10
common/maps/maps.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package maps
|
||||
|
||||
func Merge[k comparable, v any](m1 map[k]v, m2 ...map[k]v) map[k]v {
|
||||
for _, m2v := range m2 {
|
||||
for k2, v2 := range m2v {
|
||||
m1[k2] = v2
|
||||
}
|
||||
}
|
||||
return m1
|
||||
}
|
||||
Reference in New Issue
Block a user