INFRASTRUCTURE/MONGO: provides MongoDB connection function and Repository Pattern with CRUD operations using the official mongo-driver package.
INFRASTRUCTURE/POSTGRES: provides PostgreSQL connection function and an interface to implement the Repository Pattern using Go´s included database/sql package.
API/UTILS: provides JSON success/error responses with logs and Middlewares for error handling and JWT token-based authorization.
Usage steps
Create an empty repository and clone it.
Execute:
go mod init github.com/{username}/{repository_name}
go get github.com/sergicanet9/scv-go-framework