diff --git a/opts/opts.go b/opts/opts.go index 0b09981778..05d5497161 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -163,6 +163,11 @@ func (opts *MapOpts) String() string { return fmt.Sprintf("%v", map[string]string((opts.values))) } +// Type returns a string name for this Option type +func (opts *MapOpts) Type() string { + return "map" +} + // NewMapOpts creates a new MapOpts with the specified map of values and a validator. func NewMapOpts(values map[string]string, validator ValidatorFctType) *MapOpts { if values == nil {