github.com/goplus/gossa@v0.3.25/pkg/runtime/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 runtime 7 8 import ( 9 q "runtime" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "runtime", 20 Path: "runtime", 21 Deps: map[string]string{ 22 "internal/abi": "abi", 23 "internal/bytealg": "bytealg", 24 "internal/cpu": "cpu", 25 "internal/goarch": "goarch", 26 "internal/goexperiment": "goexperiment", 27 "internal/goos": "goos", 28 "runtime/internal/atomic": "atomic", 29 "runtime/internal/math": "math", 30 "runtime/internal/sys": "sys", 31 "unsafe": "unsafe", 32 }, 33 Interfaces: map[string]reflect.Type{ 34 "Error": reflect.TypeOf((*q.Error)(nil)).Elem(), 35 }, 36 NamedTypes: map[string]gossa.NamedType{ 37 "BlockProfileRecord": {reflect.TypeOf((*q.BlockProfileRecord)(nil)).Elem(), "", ""}, 38 "Frame": {reflect.TypeOf((*q.Frame)(nil)).Elem(), "", ""}, 39 "Frames": {reflect.TypeOf((*q.Frames)(nil)).Elem(), "", "Next"}, 40 "Func": {reflect.TypeOf((*q.Func)(nil)).Elem(), "", "Entry,FileLine,Name,funcInfo,raw"}, 41 "MemProfileRecord": {reflect.TypeOf((*q.MemProfileRecord)(nil)).Elem(), "", "InUseBytes,InUseObjects,Stack"}, 42 "MemStats": {reflect.TypeOf((*q.MemStats)(nil)).Elem(), "", ""}, 43 "StackRecord": {reflect.TypeOf((*q.StackRecord)(nil)).Elem(), "", "Stack"}, 44 "TypeAssertionError": {reflect.TypeOf((*q.TypeAssertionError)(nil)).Elem(), "", "Error,RuntimeError"}, 45 }, 46 AliasTypes: map[string]reflect.Type{}, 47 Vars: map[string]reflect.Value{ 48 "MemProfileRate": reflect.ValueOf(&q.MemProfileRate), 49 }, 50 Funcs: map[string]reflect.Value{ 51 "BlockProfile": reflect.ValueOf(q.BlockProfile), 52 "Breakpoint": reflect.ValueOf(q.Breakpoint), 53 "CPUProfile": reflect.ValueOf(q.CPUProfile), 54 "Caller": reflect.ValueOf(q.Caller), 55 "Callers": reflect.ValueOf(q.Callers), 56 "CallersFrames": reflect.ValueOf(q.CallersFrames), 57 "FuncForPC": reflect.ValueOf(q.FuncForPC), 58 "GC": reflect.ValueOf(q.GC), 59 "GOMAXPROCS": reflect.ValueOf(q.GOMAXPROCS), 60 "GOROOT": reflect.ValueOf(q.GOROOT), 61 "Goexit": reflect.ValueOf(q.Goexit), 62 "GoroutineProfile": reflect.ValueOf(q.GoroutineProfile), 63 "Gosched": reflect.ValueOf(q.Gosched), 64 "KeepAlive": reflect.ValueOf(q.KeepAlive), 65 "LockOSThread": reflect.ValueOf(q.LockOSThread), 66 "MemProfile": reflect.ValueOf(q.MemProfile), 67 "MutexProfile": reflect.ValueOf(q.MutexProfile), 68 "NumCPU": reflect.ValueOf(q.NumCPU), 69 "NumCgoCall": reflect.ValueOf(q.NumCgoCall), 70 "NumGoroutine": reflect.ValueOf(q.NumGoroutine), 71 "ReadMemStats": reflect.ValueOf(q.ReadMemStats), 72 "ReadTrace": reflect.ValueOf(q.ReadTrace), 73 "SetBlockProfileRate": reflect.ValueOf(q.SetBlockProfileRate), 74 "SetCPUProfileRate": reflect.ValueOf(q.SetCPUProfileRate), 75 "SetCgoTraceback": reflect.ValueOf(q.SetCgoTraceback), 76 "SetFinalizer": reflect.ValueOf(q.SetFinalizer), 77 "SetMutexProfileFraction": reflect.ValueOf(q.SetMutexProfileFraction), 78 "Stack": reflect.ValueOf(q.Stack), 79 "StartTrace": reflect.ValueOf(q.StartTrace), 80 "StopTrace": reflect.ValueOf(q.StopTrace), 81 "ThreadCreateProfile": reflect.ValueOf(q.ThreadCreateProfile), 82 "UnlockOSThread": reflect.ValueOf(q.UnlockOSThread), 83 "Version": reflect.ValueOf(q.Version), 84 }, 85 TypedConsts: map[string]gossa.TypedConst{ 86 "GOARCH": {reflect.TypeOf(q.GOARCH), constant.MakeString(string(q.GOARCH))}, 87 "GOOS": {reflect.TypeOf(q.GOOS), constant.MakeString(string(q.GOOS))}, 88 }, 89 UntypedConsts: map[string]gossa.UntypedConst{ 90 "Compiler": {"untyped string", constant.MakeString(string(q.Compiler))}, 91 }, 92 }) 93 }