Refactor strategy pattern

This commit is contained in:
Tamer Tas committed 2016-04-16 17:36:56 +03:00
1 parent 3885b01c61
commit 51e0aeb499
4 files changed
+56 -44

No files matched your search

+1 -1
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 |