multiformats / go-multistream

an implementation of the multistream protocol in go
MIT License
40 stars 27 forks source link

Fix errors Is checking #100

Closed MarcoPolo closed 1 year ago

MarcoPolo commented 1 year ago

Callers expect to be able to check if an error is a ErrNotSupported. The generics change things so we need to explicitly add a .Is method.