fix golint issues in core/metric (#499)

This commit is contained in:
Kevin Wan
2021-02-21 21:18:07 +08:00
committed by GitHub
parent 8872d7cbd3
commit e7c9ef16fe
4 changed files with 18 additions and 3 deletions

View File

@@ -6,10 +6,14 @@ import (
)
type (
// A CounterVecOpts is an alias of VectorOpts.
CounterVecOpts VectorOpts
// CounterVec interface represents a counter vector.
CounterVec interface {
// Inc increments labels.
Inc(lables ...string)
// Add adds labels with v.
Add(v float64, labels ...string)
close() bool
}
@@ -19,6 +23,7 @@ type (
}
)
// NewCounterVec returns a CounterVec.
func NewCounterVec(cfg *CounterVecOpts) CounterVec {
if cfg == nil {
return nil