mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
2f539d3bd2
Go ens needs to be updated to be compatible with the lastest geth version
13 lines
186 B
Go
13 lines
186 B
Go
// +build go1.12
|
|
|
|
package memsize
|
|
|
|
import "reflect"
|
|
|
|
func iterateMap(m reflect.Value, fn func(k, v reflect.Value)) {
|
|
it := m.MapRange()
|
|
for it.Next() {
|
|
fn(it.Key(), it.Value())
|
|
}
|
|
}
|