func (option Option) error(err *error, name string, value interface{}) {
	if *err != nil {
		*err = fmt.Errorf("option %q expected %s, got %#v", name, option.Type, value)
	}
}
// error replaces any supplied non-nil error with a new error describing a
// validation failure for the supplied value.
error replaces any supplied non-nil error with a new error describing a
validation failure for the supplied value.
// error replaces any supplied non - nil error with a new error describing a // validation failure for the supplied value .
func (option Option) error(err *error, name string, value interface{}) {
	if *err != nil {
		*err = fmt.Errorf("option %q expected %s, got %#v", name, option.Type, value)
	}
}
func ( option Option ) error ( err * error , name string , value interface { } ) { if * err != nil { * err = fmt . Errorf ( " " , name , option . Type , value ) } }
error replaces any supplied non-nil error with a new error describing a
validation failure for the supplied value.
error replaces any supplied non - nil error with a new error describing a validation failure for the supplied value .