Tag Strategy

Design Patterns in Go: Strategy

Introduction The strategy pattern is a behavorial design pattern that allows you to define a family of algorithms, encapsulate them as an object, and with the help of interfaces make them interchangeable. What does it look like? A short explanation:…