...

Source file src/github.com/ugorji/go/codec/goversion_makemap_not_unsafe_gte_go110.go

Documentation: github.com/ugorji/go/codec

     1  // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
     2  // Use of this source code is governed by a MIT license found in the LICENSE file.
     3  
     4  //go:build go1.10 && (safe || codec.safe || appengine)
     5  // +build go1.10
     6  // +build safe codec.safe appengine
     7  
     8  package codec
     9  
    10  import "reflect"
    11  
    12  func makeMapReflect(t reflect.Type, size int) reflect.Value {
    13  	return reflect.MakeMapWithSize(t, size)
    14  }
    15  

View as plain text