hasura / go-graphql-client

Package graphql provides a GraphQL client implementation.
MIT License
395 stars 91 forks source link

Add Unwrap support to Errors type to support errors.Is and errrors.As. #127

Closed calebbrown closed 6 months ago

calebbrown commented 6 months ago

go1.20 added support for the Unwrap() []error interface.

Currently the Errors type does not implement any unwrap capability, making it impossible to call errors.Is or errors.As to extract the details of an underlying error.