status-go/vendor/github.com/fjl/memsize/mapiter_old.go

12 lines
179 B
Go
Raw Normal View History

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