github.com/goplus/gossa@v0.3.25/pkg/runtime/debug/go117_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!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  			"os":      "os",
    22  			"runtime": "runtime",
    23  			"sort":    "sort",
    24  			"strings": "strings",
    25  			"time":    "time",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]gossa.NamedType{
    29  			"BuildInfo": {reflect.TypeOf((*q.BuildInfo)(nil)).Elem(), "", ""},
    30  			"GCStats":   {reflect.TypeOf((*q.GCStats)(nil)).Elem(), "", ""},
    31  			"Module":    {reflect.TypeOf((*q.Module)(nil)).Elem(), "", ""},
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars:       map[string]reflect.Value{},
    35  		Funcs: map[string]reflect.Value{
    36  			"FreeOSMemory":    reflect.ValueOf(q.FreeOSMemory),
    37  			"PrintStack":      reflect.ValueOf(q.PrintStack),
    38  			"ReadBuildInfo":   reflect.ValueOf(q.ReadBuildInfo),
    39  			"ReadGCStats":     reflect.ValueOf(q.ReadGCStats),
    40  			"SetGCPercent":    reflect.ValueOf(q.SetGCPercent),
    41  			"SetMaxStack":     reflect.ValueOf(q.SetMaxStack),
    42  			"SetMaxThreads":   reflect.ValueOf(q.SetMaxThreads),
    43  			"SetPanicOnFault": reflect.ValueOf(q.SetPanicOnFault),
    44  			"SetTraceback":    reflect.ValueOf(q.SetTraceback),
    45  			"Stack":           reflect.ValueOf(q.Stack),
    46  			"WriteHeapDump":   reflect.ValueOf(q.WriteHeapDump),
    47  		},
    48  		TypedConsts:   map[string]gossa.TypedConst{},
    49  		UntypedConsts: map[string]gossa.UntypedConst{},
    50  	})
    51  }