/
go121_export.go
executable file
·56 lines (50 loc) · 1.69 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
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.21
// +build go1.21
package debug
import (
q "runtime/debug"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "debug",
Path: "runtime/debug",
Deps: map[string]string{
"fmt": "fmt",
"os": "os",
"runtime": "runtime",
"sort": "sort",
"strconv": "strconv",
"strings": "strings",
"time": "time",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]reflect.Type{
"BuildInfo": reflect.TypeOf((*q.BuildInfo)(nil)).Elem(),
"BuildSetting": reflect.TypeOf((*q.BuildSetting)(nil)).Elem(),
"GCStats": reflect.TypeOf((*q.GCStats)(nil)).Elem(),
"Module": reflect.TypeOf((*q.Module)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{},
Funcs: map[string]reflect.Value{
"FreeOSMemory": reflect.ValueOf(q.FreeOSMemory),
"ParseBuildInfo": reflect.ValueOf(q.ParseBuildInfo),
"PrintStack": reflect.ValueOf(q.PrintStack),
"ReadBuildInfo": reflect.ValueOf(q.ReadBuildInfo),
"ReadGCStats": reflect.ValueOf(q.ReadGCStats),
"SetGCPercent": reflect.ValueOf(q.SetGCPercent),
"SetMaxStack": reflect.ValueOf(q.SetMaxStack),
"SetMaxThreads": reflect.ValueOf(q.SetMaxThreads),
"SetMemoryLimit": reflect.ValueOf(q.SetMemoryLimit),
"SetPanicOnFault": reflect.ValueOf(q.SetPanicOnFault),
"SetTraceback": reflect.ValueOf(q.SetTraceback),
"Stack": reflect.ValueOf(q.Stack),
"WriteHeapDump": reflect.ValueOf(q.WriteHeapDump),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{},
})
}