Design Patterns in Go and Java
Creational Design Pattern
-
Factory Design Pattern
Example UML for Factory Pattern:
-
Abstract Factory Design Pattern
Example UML for Abstract Factory Pattern:
Structural Design Patterns
Behavioural Design Patterns
- Strategy Design Pattern
Example UML for Strategy Pattern:
Domain Driven Design Patterns
- Repository Design Pattern
Repository design pattern is used for providing abstraction to the data access logic. Using Repository Design Pattern, the business logic layer of your application need not have any knowledge on how data persistence happens beneath.
Example UML for Repository Pattern: