23/02 Factory Design Pattern in Go
Factory Pattern Creational pattern The caller does not create objects directly The factory function or object handles the creation of new objects based on some conditions So what is the factory pattern? It belongs to a pattern type called creational pattern. This is because the factory pattern is mostly targeted towards creating object. In the factory pattern, the code that uses the object is no..
Go/Mastering Go
2022. 2. 24. 22:50