Open aazimkhan19 opened 2 weeks ago
Hi! The check has a simple reason - if your key is zero, you do not need to deep copy it; you can put the zero key into the new map directly.
However, if you have some bugs because of the library, you can send me some additional information or even a test case.
I have a map field in a structure that might contain an entry with an empty key (zero value). The clone function skips recursive deep copying if a map entry's key is zero. Is there any reason for this check
!k.IsZero()
?