Initial commit

This commit is contained in:
Yuzuki616
2024-09-12 06:04:32 +09:00
commit 3f58fa7f0d
31 changed files with 2814 additions and 0 deletions

10
common/maps/maps.go Normal file
View 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
}