Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defer file.Close #25

Open
awalterschulze opened this issue Aug 15, 2017 · 1 comment
Open

defer file.Close #25

awalterschulze opened this issue Aug 15, 2017 · 1 comment

Comments

@awalterschulze
Copy link
Owner

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

@OladapoAjala
Copy link
Contributor

@awalterschulze I have decided to start my contribution with this, it should get me started nicely.

I already created a PR let me know your thoughts.

#78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants