github.com/fengyoulin/inspect@v0.2.1/runtime.go (about)

     1  package inspect
     2  
     3  import "unsafe"
     4  
     5  //go:linkname typelinks reflect.typelinks
     6  func typelinks() (sections []unsafe.Pointer, offset [][]int32)
     7  
     8  //go:linkname resolveTypeOff reflect.resolveTypeOff
     9  func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer
    10  
    11  type iface struct {
    12  	tab  unsafe.Pointer
    13  	data unsafe.Pointer
    14  }