github.com/goplus/igop@v0.25.0/pkg/runtime/metrics/go116_export.go (about) 1 // export by github.com/goplus/igop/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/igop" 14 ) 15 16 func init() { 17 igop.RegisterPackage(&igop.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]reflect.Type{ 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(), 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]igop.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]igop.UntypedConst{}, 46 }) 47 }