delphi.market/lib/merge.go

8 lines
125 B
Go

package lib
func Merge[T comparable](target *map[T]any, src *map[T]any) {
for k, v := range *src {
(*target)[k] = v
}
}