github.com/goplus/igop@v0.25.0/pkg/runtime/go121_export.go (about)

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