[vmalert] config parser (#393)

* [vmalert] config parser

* make linter be happy

* fix test

* fix sprintf add test for rule validation
This commit is contained in:
kreedom 2020-03-29 01:48:30 +02:00 committed by Aliaksandr Valialkin
parent c66a13bf0f
commit f058efb3d1

View file

@ -5,7 +5,7 @@ import (
"strings" "strings"
) )
// NewArray returns new Array with the given name and descprition. // NewArray returns new Array with the given name and description.
func NewArray(name, description string) *Array { func NewArray(name, description string) *Array {
var a Array var a Array
flag.Var(&a, name, description) flag.Var(&a, name, description)