{"repo":"diegoclair/go_boilerplate","free":true,"listed":false,"github":"https://github.com/diegoclair/go_boilerplate","clone":"git clone https://github.com/diegoclair/go_boilerplate.git","description":"Golang boilerplate","language":"Go","stars":32,"topics":["boilerplate","clean-architecture","ddd","ddd-architecture","docker","docker-compose","go","golang","go-template","go-testing"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"GO BOILERPLATE A robust Go boilerplate for API projects using Domain-Driven Design (DDD) and Clean Architecture principles. Developed with the software and tools below. Table of Contents - Description - Project Architecture - Directory Structure - Dependency Rule - Getting Started - Prerequisites - Configuration - Launching the Application - First Request Example - Testing - Unit Tests - Mocks - Running Tests - API Documentation - Generating Docs - Contributing - License Description This project serves as a boilerplate for creating API projects in Go, incorporating key principles of Domain-Driven Design (DDD) and Clean Architecture . It aims to provide a solid foundation for building maintainable and scalable Go applications. The structure reflects best practices gathered from experience, emphasizing separation of concerns and testability. All layers are thoroughly tested to ensure reliability. Contributions and suggestions for improvement are highly encouraged! Project Architecture This boilerplate follows the principles of Clean Architecture, organizing code into distinct layers with specific responsibilities. Directory Structure The project aims to follow standard Go project layout conventions where applicable. The main directories are: /cmd : Contains the application entry point ( cmd/main.go ). Responsible for bootstrapping the application: loading configuration ( config.toml ), setting up dependency injection, and starting the HTTP server. /internal : Houses the core ap","default_branch":null,"files":null,"tree":[],"storefront":"/r/diegoclair","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/diegoclair/go_boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}