func (e Errors) All() error {
	if errorCount := len(e); errorCount > 0 {
		var errors []error
		for x := 0; x < errorCount; x++ {
			err := <-e
			if err != nil {
				errors = append(errors, err)
			}
		}
		if len(errors) > 0 {
			return ex.Append(nil, errors...)
		}
		return nil
	}
	return nil
}
// All returns all the non-nil errors in the channel
// as a multi-error.
All returns all the non-nil errors in the channel
as a multi-error.
// All returns all the non - nil errors in the channel // as a multi - error .
func (e Errors) All() error {
	if errorCount := len(e); errorCount > 0 {
		var errors []error
		for x := 0; x < errorCount; x++ {
			err := <-e
			if err != nil {
				errors = append(errors, err)
			}
		}
		if len(errors) > 0 {
			return ex.Append(nil, errors...)
		}
		return nil
	}
	return nil
}
func ( e Errors ) All ( ) error { if errorCount := len ( e ) ; errorCount > 0 { var errors [ ] error for x := 0 ; x < errorCount ; x ++ { err := <- e if err != nil { errors = append ( errors , err ) } } if len ( errors ) > 0 { return ex . Append ( nil , errors ... ) } return nil } return nil }
All returns all the non-nil errors in the channel
as a multi-error.
All returns all the non - nil errors in the channel as a multi - error .