# bytexlee/go-patterns

Golang 设计模式

Repository: https://github.com/bytexlee/go-patterns
Canonical: https://ross.abutalabs.com/products/bytexlee-go-patterns
Language: Go
License Family: other
Last push: 2026-03-13T11:18:26+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 72, release rhythm 35, longevity 100
- inputs: {"age_days": 2563, "days_push": 173, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1092, forks 182 (observed 2026-08-28T04:03:33.188095+00:00)

## What it is
A curated collection of Go (Golang) design pattern implementations covering creational, structural, behavioral, and synchronization patterns. Each pattern is presented in its own directory with idiomatic Go examples leveraging struct composition and implicit interface implementation.

## Use cases
- learn design patterns in go
- see how singleton pattern is implemented in golang
- example of observer pattern in go
- understand go struct composition patterns
- reference for go concurrency patterns like semaphore and pubsub
- study builder and factory patterns with go code

## When to choose
- you are learning Go and want idiomatic examples of classic design patterns
- you need quick reference implementations of patterns like decorator, proxy, or strategy in Go
- you want to see how Go's interfaces and struct embedding replace traditional OOP inheritance

## When to avoid
- you need a production-ready pattern library with tested, importable packages
- you need comprehensive documentation or English-language explanations
- you need patterns beyond the ~27 covered here or advanced enterprise architecture guidance

## Facets
- artifact type: learning-resource
- maturity: stable
- function: developer-tools
- domain: developer-tools, tutorials, programming-languages
- platform: go
- tags: design-patterns, golang, creational-patterns, structural-patterns, behavioral-patterns, concurrency-patterns, code-examples, algorithms

## Member repositories
- bytexlee/go-patterns (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:33.188095+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:01.675496+00:00, confidence not recorded.
  - readme: https://github.com/bytexlee/go-patterns (fetched 2026-08-28T04:03:33.188095+00:00, sha 75df07f44cfb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
