Skip to content

ferminhg/golang-data-structures

Repository files navigation

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

About

golang-data-structures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published