Refactor strategy pattern

This commit is contained in:
Tamer Tas
2016-04-15 14:51:23 +03:00
parent 3885b01c61
commit 51e0aeb499
4 changed files with 56 additions and 44 deletions

View File

@@ -45,7 +45,7 @@ __Behavioral Patterns__:
| [Observer](observer.go) | Provide a callback for notification of events/changes to data |
| [Registry](registry.go) | Keep track of all subclasses of a given class |
| [State](state.go) | Encapsulates varying behavior for the same object based on its internal state |
| [Strategy](strategy/strategy.go) | Enables an algorithm's behavior to be selected at runtime |
| [Strategy](behavioral/strategy.md) | Enables an algorithm's behavior to be selected at runtime |
| [Template](template.go) | Defines a skeleton class which defers some methods to subclasses |
| [Visitor](visitor.go) | Separates an algorithm from an object on which it operates |