Golang, Transactions, Sql, Closures Functions, Acid.
solve this problem? The first solution which we came up with is a bit error-prone and a bit hackish solution which exposed BeginTransaction , Commit and Rollback operations to the service layer and using Go’s Named Returns + Defer functions to the rescue. The code looks like the one below. If you