implemented template pattern

This commit is contained in:
ismayilmalik 2018-01-16 23:40:27 +03:00
parent a4bcf12db6
commit 7cda9422a1

View File

@ -24,6 +24,7 @@
- [State](#state) - [State](#state)
- [Visitor](#visitor) - [Visitor](#visitor)
- [Mediator](#mediator) - [Mediator](#mediator)
- [Template](#template)
- [Concurrency patterns](#concurrency-patterns) - [Concurrency patterns](#concurrency-patterns)
--- ---
@ -94,5 +95,8 @@ Represent an operation to be performed on the elements of an object structure.Vi
### Mediator ### Mediator
Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently
### Template
Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses redefine certain steps of an algorithm without changing the algorithm structure.
## Concurrency patterns ## Concurrency patterns
Pattenrs for concurrent work and parallel execution in Go. Pattenrs for concurrent work and parallel execution in Go.