News for hackers. Stuff that matters.
Re:Testing Database Transactions in Go by marvinblum on Friday August 28, 2020 @07:05AM (#24303488)
> Great points! Any hints regarding preexisting linters for go code that errors if we execute outside (an already opened) db transaction?

I'm limiting the open connections at the moment and using the default Goland linter. It won't show you these kind of errors though and I just remembered that I saw it somewhere else, but I don't remember where it was :D

Re:Testing Database Transactions in Go by morelisp on Friday August 28, 2020 @11:07AM (#24305749)
You might be thinking of https://github.com/ryanrolds/sqlclosecheck but it will only catch leaks, not deadlocks.