# AlexanderGrom/go-patterns

Design patterns in Golang

Repository: https://github.com/AlexanderGrom/go-patterns
Canonical: https://ross.abutalabs.com/products/alexandergrom-go-patterns
Language: Go
License: MIT
License Family: permissive
Topics: golang, go, patterns
Last push: 2021-04-15T17:42:30+00:00

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

## Adoption (not part of the score)
Stars 2072, forks 245 (observed 2026-08-28T04:06:10.436722+00:00)

## What it is
A curated collection of 22 classic GoF design patterns implemented in Go, organized into creational, structural, and behavioral categories. Each pattern includes example code and a brief explanation adapted to Go's type and interface semantics.

## Use cases
- learn design patterns in go
- see singleton implemented in golang
- examples of observer pattern in go
- study gof patterns with go code
- reference for builder pattern in go
- understand structural patterns like adapter and decorator in go

## When to choose
- you are learning Go and want idiomatic examples of classic design patterns
- you need a quick reference comparing creational, structural, and behavioral patterns in Go
- you prefer concise, runnable examples over lengthy theory

## When to avoid
- you need a production-ready pattern library to import into your project
- you want patterns specific to concurrency in Go (channels, goroutines patterns)
- you need actively maintained content with recent updates

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

## Member repositories
- AlexanderGrom/go-patterns (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:10.436722+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-30T02:56:40.434820+00:00, confidence not recorded.
  - readme: https://github.com/AlexanderGrom/go-patterns (fetched 2026-08-28T04:06:10.436722+00:00, sha 11c35252a259)
- Data as of 2026-08-30T08:39:29.467469+00:00.
