clarify array_flag.go

This commit is contained in:
Livio Amstutz 2020-03-27 13:44:50 +01:00
parent b9833aa604
commit eb1d22c6a3

View File

@ -1,7 +1,14 @@
package config
import "strings"
import (
"flag"
"strings"
)
var _ flag.Value = (*ArrayFlags)(nil)
//ArrayFlags implements the flag/Value interface
//allowing to set multiple string flags with the same name
type ArrayFlags []string
func (i *ArrayFlags) String() string {