err := errors.Join(errDisk, errNetwork)
// *** before: ***
// errors.Join did not exist, and the comparison walked
// a single Unwrap chain
// *** in version 1.20: ***
if errors.Is(err, errDisk) {
fmt.Println("the disk failure is part of the joined error")
}