func (c *Config) FilterSettings(settings Settings) Settings {
	out := make(Settings)
	for name, value := range settings {
		if option, err := c.option(name); err == nil {
			if value, err := option.validate(name, value); err == nil {
				out[name] = value
			}
		}
	}
	return out
}
// FilterSettings returns the subset of the supplied settings that are valid.
FilterSettings returns the subset of the supplied settings that are valid.
// FilterSettings returns the subset of the supplied settings that are valid .
func (c *Config) FilterSettings(settings Settings) Settings {
	out := make(Settings)
	for name, value := range settings {
		if option, err := c.option(name); err == nil {
			if value, err := option.validate(name, value); err == nil {
				out[name] = value
			}
		}
	}
	return out
}
func ( c * Config ) FilterSettings ( settings Settings ) Settings { out := make ( Settings ) for name , value := range settings { if option , err := c . option ( name ) ; err == nil { if value , err := option . validate ( name , value ) ; err == nil { out [ name ] = value } } } return out }
FilterSettings returns the subset of the supplied settings that are valid.
FilterSettings returns the subset of the supplied settings that are valid .