Creational design patterns are essential for managing object creation mechanisms, promoting flexibility, and enhancing code reuse and robustness. This course will introduce you to the most popular creational design patterns in Go and help you understand the importance of each pattern. You will learn how to implement these patterns in your code and how to choose the right pattern for your project.
Overview
Syllabus
- Lesson 1: Singleton Pattern in Go
- Understanding Singleton Pattern in Go
- Add Prefix to Log Messages
- Fix the Singleton Implementation
- Singleton Pattern Logging Implementation
- Implementing Singleton Logger in Go
- Lesson 2: Introduction to the Factory Method Pattern
- Running the Factory Method Pattern
- Add a New Document Type
- Complete the Instrument Factory Pattern
- Document Type Creator in Go