func (err AggregateError) Error() string {
	if len(err) == 0 {
		// This should never happen, really.
		return ""
	}
	if len(err) == 1 {
		return err[0].Error()
	}
	result := fmt.Sprintf("[%s", err[0].Error())
	for i := 1; i < len(err); i++ {
		result += fmt.Sprintf(", %s", err[i].Error())
	}
	result += "]"
	return result
}
func (err AggregateError) Error() string {
	if len(err) == 0 {
		
		return ""
	}
	if len(err) == 1 {
		return err[0].Error()
	}
	result := fmt.Sprintf("[%s", err[0].Error())
	for i := 1; i < len(err); i++ {
		result += fmt.Sprintf(", %s", err[i].Error())
	}
	result += "]"
	return result
}
func ( err AggregateError ) Error ( ) string { if len ( err ) == 0 { // This should never happen, really. return " " } if len ( err ) == 1 { return err [ 0 ] . Error ( ) } result := fmt . Sprintf ( " " , err [ 0 ] . Error ( ) ) for i := 1 ; i < len ( err ) ; i ++ { result += fmt . Sprintf ( " " , err [ i ] . Error ( ) ) } result += " " return result }
// Error is part of the error interface.
Error is part of the error interface .