Go stdlib package — runtime/metrics. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.All()NeutralAll() []Description
All returns a slice of containing metric descriptions for all supported metrics.
.Read()NeutralRead(m []Sample)
Read populates each Value field in the given slice of metric samples.
.Value.Float64()NeutralValue.Float64() float64
Float64 returns the internal float64 value for the metric.
.Value.Float64Histogram()NeutralValue.Float64Histogram() *Float64Histogram
Float64Histogram returns the internal *Float64Histogram value for the metric.
.Value.Kind()NeutralValue.Kind() ValueKind
Kind returns the tag representing the kind of value this is.
.Value.Uint64()NeutralValue.Uint64() uint64
Uint64 returns the internal uint64 value for the metric.
.Float64Histogram()Neutraltype Float64Histogram ...
Float64Histogram represents a distribution of float64 values.
| FQN | Field | |
|---|---|---|
| runtime/metrics | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # runtime/metrics