Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ignore error function to be used with defer. Ignore executes nullary input function f and ignores its error return value. A typical use case is ignoring errors in the defer statements: defer errs.Ignore(body.Close) * errs: Add Ignore function errs/ignore.go | 9 +++++++++ errs/ignore_test.go | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+)
- Loading branch information