How senghoo/golang-design-pattern works
Project type and purpose
• This repository is not a standalone application or service, but an educational “catalog” of Go (Golang) design‐pattern implementations.
• Its purpose is to demonstrate each pattern (creational, structural, behavioral) in idiomatic Go, with code examples and unit tests.
File structure
• Top‐level items:
• 23 numbered directories (00_simple_factory … 23_visitor), each implementing one design pattern
• LICENSE, README.md (project overview)
• .travis.yml (CI configuration)
• .gitignore
• Within each pattern directory:
• A .go source file (pattern implementation)
• A _test.go file (unit tests exercising the implementation)
• Often a README.md describing the pattern in that folder
• There is no frontend/backend split—each folder is a self‐contained module illustrating one pattern.
• The CI config (.travis.yml) runs Go test on every pattern.
README for additional insights
• The README groups patterns into three categories:
a. Creational (00–07)
b. Structural (01,02,09,13,18,20,22)
c. Behavioral (08,10–12,14–17,19,21,23)
• No runtime or deployment sections; focus is on code examples.