creational/factory: implement factory method pattern

This commit is contained in:
Tamer Tas committed 2017-02-22 16:46:45 +03:00
1 parent c851ce7037
commit 4595241f77
2 files changed
+59 -1

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ A curated collection of idiomatic design & application patterns for Go language.
|:-------:|:----------- |:------:|
| [Abstract Factory](/creational/abstract_factory.md) | Provides an interface for creating families of releated objects | ✘ |
| [Builder](/creational/builder.md) | Builds a complex object using simple objects | ✘ |
| [Factory Method](/creational/factory.md) | Defers instantiation of an object to a specialized function for creating instances | ✘ |
| [Factory Method](/creational/factory.md) | Defers instantiation of an object to a specialized function for creating instances | ✔ |
| [Object Pool](/creational/object-pool.md) | Instantiates and maintains a group of objects instances of the same type | ✔ |
| [Singleton](/creational/singleton.md) | Restricts instantiation of a type to one object | ✔ |