Point to a Counter, which could be used as a gauge

This commit is contained in:
Aliaksandr Valialkin 2019-04-15 15:22:58 +03:00
parent 7c4a402be3
commit d8d17da673

View File

@ -27,6 +27,8 @@ func NewGauge(name string, f func() float64) *Gauge {
} }
// Gauge is a float64 gauge. // Gauge is a float64 gauge.
//
// See also Counter, which could be used as a gauge with Set and Dec calls.
type Gauge struct { type Gauge struct {
f func() float64 f func() float64
} }