diff options
Diffstat (limited to 'vendor/github.com/modern-go/reflect2/go_above_19.go')
-rw-r--r-- | vendor/github.com/modern-go/reflect2/go_above_19.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/modern-go/reflect2/go_above_19.go b/vendor/github.com/modern-go/reflect2/go_above_19.go new file mode 100644 index 00000000..c7e3b780 --- /dev/null +++ b/vendor/github.com/modern-go/reflect2/go_above_19.go @@ -0,0 +1,14 @@ +//+build go1.9 + +package reflect2 + +import ( + "unsafe" +) + +//go:linkname makemap reflect.makemap +func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) + +func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { + return makemap(rtype, cap) +} |