Skip to content

Go 1.20: Errors() should support any multi-error #70

@abhinav

Description

@abhinav

Follow up to #69

Now that the interface for errors wrapping multiple errors has been standardized to, Unwrap() []error, the multierr.Errors(error) []error function should support any error that conforms to it, not just its own error type.

This behavior should be gated behind the go1.20 build tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions