I just started using this package. I'm building a REST API that executes CRUD operations on a Microsoft SQL database. The good flow works for all my endpoints. Now I want to start with the failures, bad flow, and error handling. For instance,
Violation of UNIQUE KEY constraint.
INSERT conflicted with the FOREIGN KEY constraint.
How do you handle these types of error constraints within your Golang application? Please provide me with best practices, code example, repositories?
Hi all,
I just started using this package. I'm building a REST API that executes CRUD operations on a Microsoft SQL database. The good flow works for all my endpoints. Now I want to start with the failures, bad flow, and error handling. For instance,
How do you handle these types of error constraints within your Golang application? Please provide me with best practices, code example, repositories?
Kind regards,
Pepijn