Skip to content

Missing Errors() []error if used Go 1.20 #101

@prochac

Description

@prochac

Ok, my bad, now it's Unwrap() []error.
IMO it should be noted somewhere, that the behavior of the library varies based on the version of used Go.
It can cause backward incompatibility to some.

Old text:
The errors.Join() feature in Go 1.20 is nice, but it's not possible to split the errors back to slice of errors.

With Uber implementation, that's under build tag for Go 1.19, it is possible

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