Duplicate creates a clone of this map
()
| 52 | |
| 53 | // Duplicate creates a clone of this map |
| 54 | func (lm *LoadMap) Duplicate() LoadMap { |
| 55 | dup := make(map[string]int64) |
| 56 | for k, v := range *lm { |
| 57 | dup[k] = v |
| 58 | } |
| 59 | return dup |
| 60 | } |
| 61 | |
| 62 | // String() returns a string representation of this map |
| 63 | func (lm *LoadMap) String() string { |
no outgoing calls
no test coverage detected