Skip to main content

2 docs tagged with "design patterns"

View all tags

MySQL Design Patterns in Go

This document illustrates how to implement the Repository Pattern in Go for interacting with a MySQL database.

Strategy Pattern: Behavioral Design Pattern

The Strategy Pattern is a behavioral design pattern that enables selecting an algorithm's implementation at runtime. It defines a family of algorithms, encapsulates each one, and makes them interchangeable. This pattern lets the algorithm vary independently from clients that use it.