goversion_maprange_gte_go112.go 316 B

1234567891011121314
  1. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  2. // Use of this source code is governed by a MIT license found in the LICENSE file.
  3. // +build go1.12
  4. // add support for reflect.Value.MapRange.
  5. package codec
  6. import "reflect"
  7. func mapRange(rv reflect.Value) *reflect.MapIter {
  8. return rv.MapRange()
  9. }