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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.20 && !go1.21
     4  // +build go1.20,!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/goexperiment":   "goexperiment",
    28  			"internal/goos":           "goos",
    29  			"runtime/internal/atomic": "atomic",
    30  			"runtime/internal/math":   "math",
    31  			"runtime/internal/sys":    "sys",
    32  			"unsafe":                  "unsafe",
    33  		},
    34  		Interfaces: map[string]reflect.Type{
    35  			"Error": reflect.TypeOf((*q.Error)(nil)).Elem(),
    36  		},
    37  		NamedTypes: map[string]reflect.Type{
    38  			"BlockProfileRecord": reflect.TypeOf((*q.BlockProfileRecord)(nil)).Elem(),
    39  			"Frame":              reflect.TypeOf((*q.Frame)(nil)).Elem(),
    40  			"Frames":             reflect.TypeOf((*q.Frames)(nil)).Elem(),
    41  			"Func":               reflect.TypeOf((*q.Func)(nil)).Elem(),
    42  			"MemProfileRecord":   reflect.TypeOf((*q.MemProfileRecord)(nil)).Elem(),
    43  			"MemStats":           reflect.TypeOf((*q.MemStats)(nil)).Elem(),
    44  			"StackRecord":        reflect.TypeOf((*q.StackRecord)(nil)).Elem(),
    45  			"TypeAssertionError": reflect.TypeOf((*q.TypeAssertionError)(nil)).Elem(),
    46  		},
    47  		AliasTypes: map[string]reflect.Type{},
    48  		Vars: map[string]reflect.Value{
    49  			"MemProfileRate": reflect.ValueOf(&q.MemProfileRate),
    50  		},
    51  		Funcs: map[string]reflect.Value{
    52  			"BlockProfile":            reflect.ValueOf(q.BlockProfile),
    53  			"Breakpoint":              reflect.ValueOf(q.Breakpoint),
    54  			"CPUProfile":              reflect.ValueOf(q.CPUProfile),
    55  			"Caller":                  reflect.ValueOf(q.Caller),
    56  			"Callers":                 reflect.ValueOf(q.Callers),
    57  			"CallersFrames":           reflect.ValueOf(q.CallersFrames),
    58  			"FuncForPC":               reflect.ValueOf(q.FuncForPC),
    59  			"GC":                      reflect.ValueOf(q.GC),
    60  			"GOMAXPROCS":              reflect.ValueOf(q.GOMAXPROCS),
    61  			"GOROOT":                  reflect.ValueOf(q.GOROOT),
    62  			"Goexit":                  reflect.ValueOf(q.Goexit),
    63  			"GoroutineProfile":        reflect.ValueOf(q.GoroutineProfile),
    64  			"Gosched":                 reflect.ValueOf(q.Gosched),
    65  			"KeepAlive":               reflect.ValueOf(q.KeepAlive),
    66  			"LockOSThread":            reflect.ValueOf(q.LockOSThread),
    67  			"MemProfile":              reflect.ValueOf(q.MemProfile),
    68  			"MutexProfile":            reflect.ValueOf(q.MutexProfile),
    69  			"NumCPU":                  reflect.ValueOf(q.NumCPU),
    70  			"NumCgoCall":              reflect.ValueOf(q.NumCgoCall),
    71  			"NumGoroutine":            reflect.ValueOf(q.NumGoroutine),
    72  			"ReadMemStats":            reflect.ValueOf(q.ReadMemStats),
    73  			"ReadTrace":               reflect.ValueOf(q.ReadTrace),
    74  			"SetBlockProfileRate":     reflect.ValueOf(q.SetBlockProfileRate),
    75  			"SetCPUProfileRate":       reflect.ValueOf(q.SetCPUProfileRate),
    76  			"SetCgoTraceback":         reflect.ValueOf(q.SetCgoTraceback),
    77  			"SetFinalizer":            reflect.ValueOf(q.SetFinalizer),
    78  			"SetMutexProfileFraction": reflect.ValueOf(q.SetMutexProfileFraction),
    79  			"Stack":                   reflect.ValueOf(q.Stack),
    80  			"StartTrace":              reflect.ValueOf(q.StartTrace),
    81  			"StopTrace":               reflect.ValueOf(q.StopTrace),
    82  			"ThreadCreateProfile":     reflect.ValueOf(q.ThreadCreateProfile),
    83  			"UnlockOSThread":          reflect.ValueOf(q.UnlockOSThread),
    84  			"Version":                 reflect.ValueOf(q.Version),
    85  		},
    86  		TypedConsts: map[string]igop.TypedConst{
    87  			"GOARCH": {reflect.TypeOf(q.GOARCH), constant.MakeString(string(q.GOARCH))},
    88  			"GOOS":   {reflect.TypeOf(q.GOOS), constant.MakeString(string(q.GOOS))},
    89  		},
    90  		UntypedConsts: map[string]igop.UntypedConst{
    91  			"Compiler": {"untyped string", constant.MakeString(string(q.Compiler))},
    92  		},
    93  	})
    94  }