Git Product home page Git Product logo

go-design-patterns's Introduction

go-design-patterns

all 24 GOF design patterns in go

Creational design patterns

Name Purpose Status
Singleton Having a unique instance of a type in the entire program
Builder Reusing an algorithm to create many implementations of an interface
Factory Method Delegating the creation of different types
Abstract factory A factory of factories
Prototype Have an object or set of objects that is already created at compile time. Serves as default template and can be cloned as many times as required.

Structural Patterns

Name Purpose Status
Composite Has a relationship vs is a relationship
Adapter Allow us to use something that wasn't built for a specific task
Bridge Decouple and abstraction from its implementation
Proxy Wrap an object to hide some of its characteristics
Facade Shield code from unwanted access and hides complexity scope from the user. A group of proxies can be considered a facade.
Decorator Decorate and already existing type with more functional features without actually touching it
Flyweight Allows sharing the state of a heavy object between many instances of some type

go-design-patterns's People

Contributors

ishankhare07 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.