Creational patterns
Patterns for object creation in Go, usually expressed through constructor functions, interfaces, and functional options.
Abstract Factory
unreadCreate related objects through one factory so whole product families can change together without leaking concrete types.
Medium
Builder
unreadSeparate a multi-step construction workflow from the final representation so the same input can produce different outputs cleanly.
Medium
Factory Method
unreadUse constructor functions and small interfaces to select concrete implementations without coupling callers to them.
Medium
Prototype
unreadClone preconfigured object graphs when copying is simpler or faster than rebuilding the same structure from scratch.
Medium
Singleton
unreadUse sync.Once carefully for one-time initialization, and understand when dependency injection is a better fit.
Low