errors.Is sees into an errors.Join result

Changes in new versions / Go 1.20

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")
}