Avoid go vet warning:

struct field tag `json:"..., omitempty"` not compatible with reflect.StructTag.Get: suspicious space in struct tag value
This commit is contained in:
Holger Obermaier
2022-01-20 12:38:52 +01:00
parent 8860b8d0f7
commit 5d263addde
5 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ import (
const CPUSTATFILE = `/proc/stat`
type CpustatCollectorConfig struct {
ExcludeMetrics []string `json:"exclude_metrics, omitempty"`
ExcludeMetrics []string `json:"exclude_metrics,omitempty"`
}
type CpustatCollector struct {