GoMapmaps.Clone

Returns a shallow copy of the map. (Go 1.21+)

문법

maps.Clone(m map[K]V) map[K]V