Skip to content

Release v0.0.35

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Sep 06:48

💥 Merge errs ignore (#36)

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(+)