command pattern

This commit is contained in:
nynicg 2019-05-02 09:38:16 +08:00
parent 48ed8bc094
commit 1d32ce54f0

View File

@ -37,7 +37,7 @@ A curated collection of idiomatic design & application patterns for Go language.
| Pattern | Description | Status |
|:-------:|:----------- |:------:|
| [Chain of Responsibility](/behavioral/chain_of_responsibility.md) | Avoids coupling a sender to receiver by giving more than object a chance to handle the request | ✔ |
| [Command](/behavioral/command.md) | Bundles a command and arguments to call later | |
| [Command](/behavioral/command.md) | Bundles a command and arguments to call later | |
| [Mediator](/behavioral/mediator.md) | Connects objects and acts as a proxy | ✘ |
| [Memento](/behavioral/memento.md) | Generate an opaque token that can be used to go back to a previous state | ✘ |
| [Observer](/behavioral/observer.md) | Provide a callback for notification of events/changes to data | ✔ |