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.
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