mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
12 lines
179 B
Go
12 lines
179 B
Go
|
// +build !go1.12
|
||
|
|
||
|
package memsize
|
||
|
|
||
|
import "reflect"
|
||
|
|
||
|
func iterateMap(m reflect.Value, fn func(k, v reflect.Value)) {
|
||
|
for _, k := range m.MapKeys() {
|
||
|
fn(k, m.MapIndex(k))
|
||
|
}
|
||
|
}
|