Slight improvements to some Clone functions

This commit is contained in:
arberkatellari
2025-04-07 18:25:03 +02:00
committed by Dan Christian Bogos
parent de349e2482
commit 0e5c5a9e60
14 changed files with 301 additions and 93 deletions

View File

@@ -111,6 +111,9 @@ func (sm StringMap) Copy(o StringMap) {
}
func (sm StringMap) Clone() StringMap {
if sm == nil {
return nil
}
result := make(StringMap, len(sm))
result.Copy(sm)
return result