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