code: func NewMapOpts(values map[string]string, validator ValidatorFctType) *MapOpts {
  	if values == nil {
  		values = make(map[string]string)
  	}
  	return &MapOpts{
  		values:    values,
  		validator: validator,
  	}
  }
docs: // NewMapOpts creates a new MapOpts with the specified map of values and a validator.