Andrea Maria Piana 2f539d3bd2 Upgrade go-ens
Go ens needs to be updated to be compatible with the lastest geth
version
2021-07-20 10:57:38 +02:00

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))
}
}