diff options
Diffstat (limited to 'misc/misc.go')
-rw-r--r-- | misc/misc.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/misc.go b/misc/misc.go new file mode 100644 index 0000000..df849a0 --- /dev/null +++ b/misc/misc.go @@ -0,0 +1,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 + } +} |