// errorGroup is a helper function for creating an error that represents
// several errors.
errorGroup is a helper function for creating an error that represents
several errors.
// errorGroup is a helper function for creating an error that represents // several errors .
func errorGroup(header string, errs []error) error {
	var sb strings.Builder
	sb.WriteString(header)
	for _, e := range errs {
		sb.WriteString("\n  ")
		sb.WriteString(e.Error())
	}
	return errors.New(sb.String())
}
func errorGroup ( header string , errs [ ] error ) error { var sb strings . Builder sb . WriteString ( header ) for _ , e := range errs { sb . WriteString ( " \n " ) sb . WriteString ( e . Error ( ) ) } return errors . New ( sb . String ( ) ) }
errorGroup is a helper function for creating an error that represents
several errors.
errorGroup is a helper function for creating an error that represents several errors .