/design-pattern-in-go

Implementation of several common design patterns in Golang

Primary LanguageGo

Design Patterns in Golang

Implementations of several common design patterns in Golang

  • Strategy Pattern
  • Observer Pattern (Pub/Sub)
  • Decorator Pattern
  • Factory Pattern
    • Simple Factory Pattern
    • Factory Method Pattern
    • Abstract Factory Pattern
  • Singleton Pattern
    • Instantiated before Use
    • Lazy Instantiation