Skip to content

Commit

Permalink
feat: implement Is on AggregateError (#254)
Browse files Browse the repository at this point in the history
* feat: implement Is on AggregateError

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: coverage

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Mar 7, 2023
1 parent 2d26ce1 commit 17f0a63
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 64 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ func main() {
}
```

> **Info**
>
> If you want to check if an specific error is in the chain, you can also use
> `errors.Is()`.
## Stargazers over time

[![Stargazers over time](https://starchart.cc/caarlos0/env.svg)](https://starchart.cc/caarlos0/env)
Loading

0 comments on commit 17f0a63

Please sign in to comment.