This project is aimed to solve the problem of using transactions on a service level in layered architecture.
In a brief, it works due to passing db object through a context.
Use the command bellow to add txmng
as a dependency into go.mod
project:
$ go get -u github.com/slavaavr/txmng
For this see examples folder.