aboutsummaryrefslogtreecommitdiff
path: root/misc/misc.go
blob: df849a05688f67779d505298ca04aee0e39c1829 (plain) (blame)
1
2
3
4
5
6
7
package misc

func Copy_map[K comparable, V any](dst map[K]V, src map[K]V) {
	for k, v := range src {
		dst[k] = v
	}
}