Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 877 Bytes

README.md

File metadata and controls

49 lines (38 loc) · 877 Bytes

golang-data-structures

Data Structures in Golang

Design Patterns in Golang

Notes:

  • Design Pattern are typically OOP-based
  • Go is not OOP
    • No inheritance
    • Weak encapsulation
  • Permissive visibility/naming
    • Hierarchy implies a set of related types: shared interfaces, embedding
    • Properties are a combination of getter/setter methods

List of Design Patterns:

Creational Patterns

  • Factory
  • Abstract Factory
  • Builder
  • Prototype
  • Singleton

Structural Patterns

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight

Behavioral Patterns