https://github.com/danny-yamamoto/go-sandbox-clean
These are samples of clean architecture.
https://github.com/danny-yamamoto/go-sandbox-clean
clean-architecture go
Last synced: about 2 months ago
JSON representation
These are samples of clean architecture.
- Host: GitHub
- URL: https://github.com/danny-yamamoto/go-sandbox-clean
- Owner: danny-yamamoto
- Created: 2023-05-01T05:35:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-06T13:22:31.000Z (about 2 years ago)
- Last Synced: 2025-02-02T18:20:37.209Z (4 months ago)
- Topics: clean-architecture, go
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-sandbox-clean
```mermaid
---
title: Payment Class Diagram
---
classDiagram
class Payment {
+PaymentID : int
}class PaymentRepository {
+GetPaymentID(limit int) (*[]Payment, error)
}class paymentRepository {
-db : *sql.DB
}class PaymentControllerInterface {
+GetPaymentID(limit int) (*[]Payment, error)
}class PaymentController {
-paymentRepository : PaymentRepository
}class Main {
-db : *sql.DB
-router : *mux.Router
-paymentController : PaymentControllerInterface
}class Router {
-paymentController : PaymentControllerInterface
}Payment -- PaymentRepository : uses
PaymentRepository <|.. paymentRepository : implements
paymentRepository --> PaymentRepository : depends
PaymentController --> PaymentRepository : depends
PaymentController <|.. PaymentControllerInterface : implements
PaymentControllerInterface -- PaymentRepository : uses
Main --> PaymentControllerInterface : depends
Router --> PaymentControllerInterface : depends
```