另客网go项目公用的代码库

go_above_19.go 257B

123456789101112131415
  1. //+build go1.9
  2. package reflect2
  3. import (
  4. "unsafe"
  5. )
  6. //go:linkname makemap reflect.makemap
  7. func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer)
  8. func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer {
  9. return makemap(rtype, cap)
  10. }