Skip to content

defer file.Close #25

@awalterschulze

Description

@awalterschulze

We open a file and defer to Close it.
We typically don't check the Close error, because we are lazy.
Is there some way that goderive can make sure we Close even with panics, like defer, and still check the error and return the results from our operation on the file.

This shows some examples
https://github.com/mpvl/errd

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions