Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/senghoo/golang-design-pattern
设计模式 Golang实现-《研磨设计模式》读书笔记
https://github.com/senghoo/golang-design-pattern
Last synced: 3 days ago
JSON representation
设计模式 Golang实现-《研磨设计模式》读书笔记
- Host: GitHub
- URL: https://github.com/senghoo/golang-design-pattern
- Owner: senghoo
- License: mit
- Created: 2016-03-12T14:55:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T03:28:22.000Z (almost 2 years ago)
- Last Synced: 2024-12-11T16:03:49.024Z (10 days ago)
- Language: Go
- Size: 1.01 MB
- Stars: 8,791
- Watchers: 204
- Forks: 2,085
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - senghoo/golang-design-pattern
- StarryDivineSky - senghoo/golang-design-pattern
README
# Go 语言设计模式
[![Build Status](https://travis-ci.org/senghoo/golang-design-pattern.svg?branch=master)](https://travis-ci.org/senghoo/golang-design-pattern)
Go 语言设计模式的实例代码
## 创建型模式
* [简单工厂模式(Simple Factory)](https://github.com/senghoo/golang-design-pattern/tree/master/00_simple_factory)
* [工厂方法模式(Factory Method)](https://github.com/senghoo/golang-design-pattern/tree/master/04_factory_method)
* [抽象工厂模式(Abstract Factory)](https://github.com/senghoo/golang-design-pattern/tree/master/05_abstract_factory)
* [创建者模式(Builder)](https://github.com/senghoo/golang-design-pattern/tree/master/06_builder)
* [原型模式(Prototype)](https://github.com/senghoo/golang-design-pattern/tree/master/07_prototype)
* [单例模式(Singleton)](https://github.com/senghoo/golang-design-pattern/tree/master/03_singleton)## 结构型模式
* [外观模式(Facade)](https://github.com/senghoo/golang-design-pattern/tree/master/01_facade)
* [适配器模式(Adapter)](https://github.com/senghoo/golang-design-pattern/tree/master/02_adapter)
* [代理模式(Proxy)](https://github.com/senghoo/golang-design-pattern/tree/master/09_proxy)
* [组合模式(Composite)](https://github.com/senghoo/golang-design-pattern/tree/master/13_composite)
* [享元模式(Flyweight)](https://github.com/senghoo/golang-design-pattern/tree/master/18_flyweight)
* [装饰模式(Decorator)](https://github.com/senghoo/golang-design-pattern/tree/master/20_decorator)
* [桥模式(Bridge)](https://github.com/senghoo/golang-design-pattern/tree/master/22_bridge)## 行为型模式
* [中介者模式(Mediator)](https://github.com/senghoo/golang-design-pattern/tree/master/08_mediator)
* [观察者模式(Observer)](https://github.com/senghoo/golang-design-pattern/tree/master/10_observer)
* [命令模式(Command)](https://github.com/senghoo/golang-design-pattern/tree/master/11_command)
* [迭代器模式(Iterator)](https://github.com/senghoo/golang-design-pattern/tree/master/12_iterator)
* [模板方法模式(Template Method)](https://github.com/senghoo/golang-design-pattern/tree/master/14_template_method)
* [策略模式(Strategy)](https://github.com/senghoo/golang-design-pattern/tree/master/15_strategy)
* [状态模式(State)](https://github.com/senghoo/golang-design-pattern/tree/master/16_state)
* [备忘录模式(Memento)](https://github.com/senghoo/golang-design-pattern/tree/master/17_memento)
* [解释器模式(Interpreter)](https://github.com/senghoo/golang-design-pattern/tree/master/19_interpreter)
* [职责链模式(Chain of Responsibility)](https://github.com/senghoo/golang-design-pattern/tree/master/21_chain_of_responsibility)
* [访问者模式(Visitor)](https://github.com/senghoo/golang-design-pattern/tree/master/23_visitor)