github.com/goplus/gossa@v0.3.25/pkg/runtime/debug/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package debug 7 8 import ( 9 q "runtime/debug" 10 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "debug", 19 Path: "runtime/debug", 20 Deps: map[string]string{ 21 "fmt": "fmt", 22 "os": "os", 23 "runtime": "runtime", 24 "sort": "sort", 25 "strconv": "strconv", 26 "strings": "strings", 27 "time": "time", 28 }, 29 Interfaces: map[string]reflect.Type{}, 30 NamedTypes: map[string]gossa.NamedType{ 31 "BuildInfo": {reflect.TypeOf((*q.BuildInfo)(nil)).Elem(), "", "String"}, 32 "BuildSetting": {reflect.TypeOf((*q.BuildSetting)(nil)).Elem(), "", ""}, 33 "GCStats": {reflect.TypeOf((*q.GCStats)(nil)).Elem(), "", ""}, 34 "Module": {reflect.TypeOf((*q.Module)(nil)).Elem(), "", ""}, 35 }, 36 AliasTypes: map[string]reflect.Type{}, 37 Vars: map[string]reflect.Value{}, 38 Funcs: map[string]reflect.Value{ 39 "FreeOSMemory": reflect.ValueOf(q.FreeOSMemory), 40 "ParseBuildInfo": reflect.ValueOf(q.ParseBuildInfo), 41 "PrintStack": reflect.ValueOf(q.PrintStack), 42 "ReadBuildInfo": reflect.ValueOf(q.ReadBuildInfo), 43 "ReadGCStats": reflect.ValueOf(q.ReadGCStats), 44 "SetGCPercent": reflect.ValueOf(q.SetGCPercent), 45 "SetMaxStack": reflect.ValueOf(q.SetMaxStack), 46 "SetMaxThreads": reflect.ValueOf(q.SetMaxThreads), 47 "SetPanicOnFault": reflect.ValueOf(q.SetPanicOnFault), 48 "SetTraceback": reflect.ValueOf(q.SetTraceback), 49 "Stack": reflect.ValueOf(q.Stack), 50 "WriteHeapDump": reflect.ValueOf(q.WriteHeapDump), 51 }, 52 TypedConsts: map[string]gossa.TypedConst{}, 53 UntypedConsts: map[string]gossa.UntypedConst{}, 54 }) 55 }