How to exclude defered statements? #205
Answered
by
dtcaciuc
katexochen
asked this question in
Q&A
-
Hi, how can I exclude defered statements? Thanks for helping! defer conn.Close() // this shouldn't throw an error |
Beta Was this translation helpful? Give feedback.
Answered by
dtcaciuc
Dec 29, 2021
Replies: 1 comment 3 replies
-
Regular way for excluding functions should work, see https://github.com/kisielk/errcheck#excluding-functions I just successfully tried it with database/sql.DB |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
katexochen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regular way for excluding functions should work, see https://github.com/kisielk/errcheck#excluding-functions
I just successfully tried it with database/sql.DB