github.com/goplus/gossa@v0.3.25/pkg/runtime/trace/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package trace
     6  
     7  import (
     8  	q "runtime/trace"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "trace",
    18  		Path: "runtime/trace",
    19  		Deps: map[string]string{
    20  			"context":     "context",
    21  			"fmt":         "fmt",
    22  			"io":          "io",
    23  			"runtime":     "runtime",
    24  			"sync":        "sync",
    25  			"sync/atomic": "atomic",
    26  			"unsafe":      "unsafe",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]gossa.NamedType{
    30  			"Region": {reflect.TypeOf((*q.Region)(nil)).Elem(), "", "End"},
    31  			"Task":   {reflect.TypeOf((*q.Task)(nil)).Elem(), "", "End"},
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars:       map[string]reflect.Value{},
    35  		Funcs: map[string]reflect.Value{
    36  			"IsEnabled":   reflect.ValueOf(q.IsEnabled),
    37  			"Log":         reflect.ValueOf(q.Log),
    38  			"Logf":        reflect.ValueOf(q.Logf),
    39  			"NewTask":     reflect.ValueOf(q.NewTask),
    40  			"Start":       reflect.ValueOf(q.Start),
    41  			"StartRegion": reflect.ValueOf(q.StartRegion),
    42  			"Stop":        reflect.ValueOf(q.Stop),
    43  			"WithRegion":  reflect.ValueOf(q.WithRegion),
    44  		},
    45  		TypedConsts:   map[string]gossa.TypedConst{},
    46  		UntypedConsts: map[string]gossa.UntypedConst{},
    47  	})
    48  }