senghoo/golang-design-pattern

设计模式 Golang实现-《研磨设计模式》读书笔记

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 4 minutes ago
Added to GitGenius on September 7th, 2026
Created on March 12th, 2016
Open Issues & Pull Requests: 5 (+0)
GitHub issues: Enabled
Number of forks: 2,074
Total Stargazers: 9,030 (+0)
Total Subscribers: 201 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

golang-design-pattern is a collection of design pattern implementations in Go.

The repository provides working code examples for the classic Gang of Four design patterns adapted to Go. It organizes patterns into three categories: creational patterns like Factory Method and Singleton that handle object instantiation; structural patterns like Adapter and Decorator that compose objects into larger structures; and behavioral patterns like Observer and Strategy that define communication between objects and distribute responsibility. Each pattern is implemented as a separate example demonstrating how to apply that pattern in Go code.

This resource suits developers learning design patterns or seeking reference implementations when applying them to Go projects. It works best as a study guide rather than a production library, since each pattern example stands alone as educational code. The repository presents patterns in their traditional form as documented in classic software design literature.

The project maintains a straightforward structure with minimal activity, serving as a stable reference that changes infrequently once patterns are implemented.