go_above_19.go 378 B

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