github.com/eh-steve/goloader@v0.0.0-20240111193454-90ff3cfdae39/type.1.18.go (about)

     1  //go:build go1.18 && !go1.21
     2  // +build go1.18,!go1.21
     3  
     4  package goloader
     5  
     6  import (
     7  	"reflect"
     8  	_ "unsafe"
     9  )
    10  
    11  //go:linkname _uncommon runtime.(*_type).uncommon
    12  func _uncommon(t *_type) *uncommonType
    13  
    14  //go:linkname typesEqual runtime.typesEqual
    15  func typesEqual(t, v *_type, seen map[_typePair]struct{}) bool
    16  
    17  //go:linkname _nameOff runtime.(*_type).nameOff
    18  func _nameOff(t *_type, off nameOff) name
    19  
    20  //go:linkname _typeOff runtime.(*_type).typeOff
    21  func _typeOff(t *_type, off typeOff) *_type
    22  
    23  //go:linkname _name runtime.name.name
    24  func _name(n name) string
    25  
    26  //go:linkname _pkgPath runtime.name.pkgPath
    27  func _pkgPath(n name) string
    28  
    29  //go:linkname _isExported runtime.name.isExported
    30  func _isExported(n name) bool
    31  
    32  //go:linkname _methods reflect.(*uncommonType).methods
    33  func _methods(t *uncommonType) []method
    34  
    35  //go:linkname _Kind reflect.(*rtype).Kind
    36  func _Kind(t *_type) reflect.Kind
    37  
    38  //go:linkname _Elem reflect.(*rtype).Elem
    39  func _Elem(t *_type) reflect.Type