github.com/goplus/gossa@v0.3.25/pkg/runtime/trace/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 trace 7 8 import ( 9 q "runtime/trace" 10 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "trace", 19 Path: "runtime/trace", 20 Deps: map[string]string{ 21 "context": "context", 22 "fmt": "fmt", 23 "io": "io", 24 "runtime": "runtime", 25 "sync": "sync", 26 "sync/atomic": "atomic", 27 "unsafe": "unsafe", 28 }, 29 Interfaces: map[string]reflect.Type{}, 30 NamedTypes: map[string]gossa.NamedType{ 31 "Region": {reflect.TypeOf((*q.Region)(nil)).Elem(), "", "End"}, 32 "Task": {reflect.TypeOf((*q.Task)(nil)).Elem(), "", "End"}, 33 }, 34 AliasTypes: map[string]reflect.Type{}, 35 Vars: map[string]reflect.Value{}, 36 Funcs: map[string]reflect.Value{ 37 "IsEnabled": reflect.ValueOf(q.IsEnabled), 38 "Log": reflect.ValueOf(q.Log), 39 "Logf": reflect.ValueOf(q.Logf), 40 "NewTask": reflect.ValueOf(q.NewTask), 41 "Start": reflect.ValueOf(q.Start), 42 "StartRegion": reflect.ValueOf(q.StartRegion), 43 "Stop": reflect.ValueOf(q.Stop), 44 "WithRegion": reflect.ValueOf(q.WithRegion), 45 }, 46 TypedConsts: map[string]gossa.TypedConst{}, 47 UntypedConsts: map[string]gossa.UntypedConst{}, 48 }) 49 }