/
go121_export.go
executable file
·97 lines (91 loc) · 4.08 KB
/
go121_export.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.21
// +build go1.21
package runtime
import (
q "runtime"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "runtime",
Path: "runtime",
Deps: map[string]string{
"internal/abi": "abi",
"internal/bytealg": "bytealg",
"internal/coverage/rtcov": "rtcov",
"internal/cpu": "cpu",
"internal/goarch": "goarch",
"internal/godebugs": "godebugs",
"internal/goexperiment": "goexperiment",
"internal/goos": "goos",
"runtime/internal/atomic": "atomic",
"runtime/internal/math": "math",
"runtime/internal/sys": "sys",
"unsafe": "unsafe",
},
Interfaces: map[string]reflect.Type{
"Error": reflect.TypeOf((*q.Error)(nil)).Elem(),
},
NamedTypes: map[string]reflect.Type{
"BlockProfileRecord": reflect.TypeOf((*q.BlockProfileRecord)(nil)).Elem(),
"Frame": reflect.TypeOf((*q.Frame)(nil)).Elem(),
"Frames": reflect.TypeOf((*q.Frames)(nil)).Elem(),
"Func": reflect.TypeOf((*q.Func)(nil)).Elem(),
"MemProfileRecord": reflect.TypeOf((*q.MemProfileRecord)(nil)).Elem(),
"MemStats": reflect.TypeOf((*q.MemStats)(nil)).Elem(),
"PanicNilError": reflect.TypeOf((*q.PanicNilError)(nil)).Elem(),
"Pinner": reflect.TypeOf((*q.Pinner)(nil)).Elem(),
"StackRecord": reflect.TypeOf((*q.StackRecord)(nil)).Elem(),
"TypeAssertionError": reflect.TypeOf((*q.TypeAssertionError)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{
"MemProfileRate": reflect.ValueOf(&q.MemProfileRate),
},
Funcs: map[string]reflect.Value{
"BlockProfile": reflect.ValueOf(q.BlockProfile),
"Breakpoint": reflect.ValueOf(q.Breakpoint),
"CPUProfile": reflect.ValueOf(q.CPUProfile),
"Caller": reflect.ValueOf(q.Caller),
"Callers": reflect.ValueOf(q.Callers),
"CallersFrames": reflect.ValueOf(q.CallersFrames),
"FuncForPC": reflect.ValueOf(q.FuncForPC),
"GC": reflect.ValueOf(q.GC),
"GOMAXPROCS": reflect.ValueOf(q.GOMAXPROCS),
"GOROOT": reflect.ValueOf(q.GOROOT),
"Goexit": reflect.ValueOf(q.Goexit),
"GoroutineProfile": reflect.ValueOf(q.GoroutineProfile),
"Gosched": reflect.ValueOf(q.Gosched),
"KeepAlive": reflect.ValueOf(q.KeepAlive),
"LockOSThread": reflect.ValueOf(q.LockOSThread),
"MemProfile": reflect.ValueOf(q.MemProfile),
"MutexProfile": reflect.ValueOf(q.MutexProfile),
"NumCPU": reflect.ValueOf(q.NumCPU),
"NumCgoCall": reflect.ValueOf(q.NumCgoCall),
"NumGoroutine": reflect.ValueOf(q.NumGoroutine),
"ReadMemStats": reflect.ValueOf(q.ReadMemStats),
"ReadTrace": reflect.ValueOf(q.ReadTrace),
"SetBlockProfileRate": reflect.ValueOf(q.SetBlockProfileRate),
"SetCPUProfileRate": reflect.ValueOf(q.SetCPUProfileRate),
"SetCgoTraceback": reflect.ValueOf(q.SetCgoTraceback),
"SetFinalizer": reflect.ValueOf(q.SetFinalizer),
"SetMutexProfileFraction": reflect.ValueOf(q.SetMutexProfileFraction),
"Stack": reflect.ValueOf(q.Stack),
"StartTrace": reflect.ValueOf(q.StartTrace),
"StopTrace": reflect.ValueOf(q.StopTrace),
"ThreadCreateProfile": reflect.ValueOf(q.ThreadCreateProfile),
"UnlockOSThread": reflect.ValueOf(q.UnlockOSThread),
"Version": reflect.ValueOf(q.Version),
},
TypedConsts: map[string]igop.TypedConst{
"GOARCH": {reflect.TypeOf(q.GOARCH), constant.MakeString(string(q.GOARCH))},
"GOOS": {reflect.TypeOf(q.GOOS), constant.MakeString(string(q.GOOS))},
},
UntypedConsts: map[string]igop.UntypedConst{
"Compiler": {"untyped string", constant.MakeString(string(q.Compiler))},
},
})
}