github.com/goplus/gossa@v0.3.25/pkg/runtime/metrics/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.16,!go1.17 4 5 package metrics 6 7 import ( 8 q "runtime/metrics" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "metrics", 19 Path: "runtime/metrics", 20 Deps: map[string]string{ 21 "math": "math", 22 "runtime": "runtime", 23 "unsafe": "unsafe", 24 }, 25 Interfaces: map[string]reflect.Type{}, 26 NamedTypes: map[string]gossa.NamedType{ 27 "Description": {reflect.TypeOf((*q.Description)(nil)).Elem(), "", ""}, 28 "Float64Histogram": {reflect.TypeOf((*q.Float64Histogram)(nil)).Elem(), "", ""}, 29 "Sample": {reflect.TypeOf((*q.Sample)(nil)).Elem(), "", ""}, 30 "Value": {reflect.TypeOf((*q.Value)(nil)).Elem(), "Float64,Float64Histogram,Kind,Uint64", ""}, 31 "ValueKind": {reflect.TypeOf((*q.ValueKind)(nil)).Elem(), "", ""}, 32 }, 33 AliasTypes: map[string]reflect.Type{}, 34 Vars: map[string]reflect.Value{}, 35 Funcs: map[string]reflect.Value{ 36 "All": reflect.ValueOf(q.All), 37 "Read": reflect.ValueOf(q.Read), 38 }, 39 TypedConsts: map[string]gossa.TypedConst{ 40 "KindBad": {reflect.TypeOf(q.KindBad), constant.MakeInt64(int64(q.KindBad))}, 41 "KindFloat64": {reflect.TypeOf(q.KindFloat64), constant.MakeInt64(int64(q.KindFloat64))}, 42 "KindFloat64Histogram": {reflect.TypeOf(q.KindFloat64Histogram), constant.MakeInt64(int64(q.KindFloat64Histogram))}, 43 "KindUint64": {reflect.TypeOf(q.KindUint64), constant.MakeInt64(int64(q.KindUint64))}, 44 }, 45 UntypedConsts: map[string]gossa.UntypedConst{}, 46 }) 47 }