Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AlexanderGrom/go-patterns
/ types & classes
Types & classes
99 in github.com/AlexanderGrom/go-patterns
⨍
Functions
205
◇
Types & classes
99
Interface
AbstractBottle
AbstractBottle provides a bottle interface.
Creational/AbstractFactory/abstract_factory.go:16
Interface
AbstractFactory
AbstractFactory provides an interface for creating families of related objects.
Creational/AbstractFactory/abstract_factory.go:5
Interface
AbstractWater
AbstractWater provides a water interface.
Creational/AbstractFactory/abstract_factory.go:11
Struct
Adaptee
Adaptee implements system to be adapted.
Structural/Adapter/adapter.go:10
Struct
Adapter
Adapter implements Target interface and is an adapter.
Structural/Adapter/adapter.go:24
Interface
Aggregate
Aggregate provides a collection interface.
Behavioral/Iterator/iterator.go:16
Struct
AndSpecification
AndSpecification
Unsorted/Specification/specification.go:83
Struct
BaseSpecification
Invoice BaseSpecification
Unsorted/Specification/specification.go:39
Struct
Book
Book implements a item of the collection.
Behavioral/Iterator/iterator.go:89
Struct
BookIterator
BookIterator implements the Iterator interface.
Behavioral/Iterator/iterator.go:21
Struct
BookShelf
BookShelf implements the Aggregate interface.
Behavioral/Iterator/iterator.go:74
Struct
BubbleSort
BubbleSort implements bubble sort algorithm.
Behavioral/Strategy/strategy.go:10
Interface
Builder
Builder provides a builder interface.
Creational/Builder/builder.go:5
Struct
BurgerBar
BurgerBar implements the Place interface.
Behavioral/Visitor/visitor.go:83
Struct
Cannery
Cannery implements a Cannery colleague.
Behavioral/Mediator/mediator.go:72
Struct
Car
Car implementation.
Structural/Bridge/bridge.go:15
Interface
Carer
Carer provides car interface.
Structural/Bridge/bridge.go:5
Struct
Caretaker
Caretaker keeps Memento until it is needed by Originator.
Behavioral/Memento/memento.go:30
Struct
Child
Child implements a subsystem "Child"
Structural/Facade/facade.go:53
Struct
City
City implements a collection of places to visit.
Behavioral/Visitor/visitor.go:36
Struct
CocaColaBottle
CocaColaBottle implements AbstractBottle.
Creational/AbstractFactory/abstract_factory.go:52
Struct
CocaColaFactory
CocaColaFactory implements AbstractFactory interface.
Creational/AbstractFactory/abstract_factory.go:23
Struct
CocaColaWater
CocaColaWater implements AbstractWater.
Creational/AbstractFactory/abstract_factory.go:42
Interface
Command
Command provides a command interface.
Behavioral/Command/command.go:5
Interface
Component
Component provides an interface for a decorator and component.
Structural/Decorator/decorator.go:5
Interface
Component
Component provides an interface for branches and leaves of a tree.
Structural/Composite/composite.go:5
Struct
ConcreteBuilder
ConcreteBuilder implements Builder interface.
Creational/Builder/builder.go:24
Struct
ConcreteComponent
ConcreteComponent implements a component.
Structural/Decorator/decorator.go:10
Struct
ConcreteCreator
ConcreteCreator implements Creator interface.
Creational/FactoryMethod/factory_method.go:29
Struct
ConcreteDecorator
ConcreteDecorator implements a decorator.
Structural/Decorator/decorator.go:19
Struct
ConcreteFlyweight
ConcreteFlyweight implements a Flyweighter interface.
Structural/Flyweight/flyweight.go:29
Struct
ConcreteHandlerA
ConcreteHandlerA implements handler "A".
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:10
Struct
ConcreteHandlerB
ConcreteHandlerB implements handler "B".
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:25
Struct
ConcreteHandlerC
ConcreteHandlerC implements handler "C".
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:40
Struct
ConcreteMediator
Тип ConcreteMediator, реализует посредника
Behavioral/Mediator/mediator.go:10
Struct
ConcreteObserver
ConcreteObserver implements the Observer interface.
Behavioral/Observer/observer.go:47
Struct
ConcreteProduct
ConcreteProduct implements product "A"
Creational/Prototype/prototype.go:11
Struct
ConcreteProductA
ConcreteProductA implements product "A".
Creational/FactoryMethod/factory_method.go:55
Struct
ConcreteProductB
ConcreteProductB implements product "B".
Creational/FactoryMethod/factory_method.go:65
Struct
ConcreteProductC
ConcreteProductC implements product "C".
Creational/FactoryMethod/factory_method.go:75
Struct
ConcretePublisher
ConcretePublisher implements the Publisher interface.
Behavioral/Observer/observer.go:18
Struct
Context
Context provides a context for execution of a strategy.
Behavioral/Strategy/strategy.go:52
Interface
Creator
Creator provides a factory interface.
Creational/FactoryMethod/factory_method.go:18
Struct
Director
Director implements a manager
Creational/Builder/builder.go:12
Struct
Directory
Directory implements branches of a tree
Structural/Composite/composite.go:13
Struct
EngineHonda
EngineHonda implements Honda engine.
Structural/Bridge/bridge.go:41
Struct
EngineLada
EngineLada implements Lada engine.
Structural/Bridge/bridge.go:50
Struct
EngineSuzuki
EngineSuzuki implements Suzuki engine.
Structural/Bridge/bridge.go:32
Interface
Enginer
Enginer provides engine interface.
Structural/Bridge/bridge.go:10
Struct
Farmer
Farmer implements a Farmer colleague
Behavioral/Mediator/mediator.go:43
Struct
File
File implements a leaves of a tree
Structural/Composite/composite.go:43
Struct
FlyweightFactory
FlyweightFactory implements a factory. If a suitable flyweighter is in pool, then returns it.
Structural/Flyweight/flyweight.go:13
Interface
Flyweighter
Flyweighter interface
Structural/Flyweight/flyweight.go:7
Struct
FrenchQuotes
FrenchQuotes implements wrapping the string in French quotes.
Behavioral/TemplateMethod/template_method.go:28
Struct
GermanQuotes
GermanQuotes implements wrapping the string in German quotes.
Behavioral/TemplateMethod/template_method.go:42
Interface
Handler
Handler provides a handler interface.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:5
Struct
House
House implements a subsystem "House"
Structural/Facade/facade.go:35
Struct
InCollectionSpecification
Invoice has already been sent to the collection agency.
Unsorted/Specification/specification.go:155
Struct
InsertionSort
InsertionSort implements insertion sort algorithm.
Behavioral/Strategy/strategy.go:29
Struct
Invoice
Data for analysis
Unsorted/Specification/specification.go:19
Struct
Invoker
Invoker implementation.
Behavioral/Command/command.go:44
Interface
Iterator
Iterator provides a iterator interface.
Behavioral/Iterator/iterator.go:5
Struct
Man
Man implements man and facade.
Structural/Facade/facade.go:18
Interface
Mediator
Mediator provides a mediator interface.
Behavioral/Mediator/mediator.go:5
Struct
Memento
Memento implements storage for the state of Originator
Behavioral/Memento/memento.go:20
Struct
MobileAlert
MobileAlert implements an alert depending on its state.
Behavioral/State/state.go:10
Struct
MobileAlertSong
MobileAlertSong implements beep alert
Behavioral/State/state.go:39
Interface
MobileAlertStater
MobileAlertStater provides a common interface for various states.
Behavioral/State/state.go:5
Struct
MobileAlertVibration
MobileAlertVibration implements vibration alert
Behavioral/State/state.go:30
Struct
NotSpecification
NotSpecification
Unsorted/Specification/specification.go:109
Struct
NoticeSentSpecification
Three notices have been sent to the customer
Unsorted/Specification/specification.go:138
Interface
Observer
Observer provides a subscriber interface.
Behavioral/Observer/observer.go:13
Struct
OrSpecification
OrSpecification
Unsorted/Specification/specification.go:96
Struct
Originator
Originator implements a state master.
Behavioral/Memento/memento.go:5
Struct
OverDueSpecification
Invoice's due date is 30 days or older
Unsorted/Specification/specification.go:121
Struct
People
People implements the Visitor interface.
Behavioral/Visitor/visitor.go:17
Struct
Pizzeria
Pizzeria implements the Place interface.
Behavioral/Visitor/visitor.go:69
Interface
Place
Place provides an interface for place that the visitor should visit.
Behavioral/Visitor/visitor.go:12
Interface
Product
Product provides a product interface. All products returned by factory must provide a single interface.
Creational/FactoryMethod/factory_method.go:24
Struct
Product
Product implementation.
Creational/Builder/builder.go:44
Interface
Prototyper
Prototyper provides a cloning interface.
Creational/Prototype/prototype.go:5
Struct
Proxy
Proxy implements a surrogate.
Structural/Proxy/proxy.go:10
Interface
Publisher
Publisher interface.
Behavioral/Observer/observer.go:6
Struct
Quotes
Quotes implements a Template Method.
Behavioral/TemplateMethod/template_method.go:13
Interface
QuotesInterface
QuotesInterface provides an interface for setting different quotes.
Behavioral/TemplateMethod/template_method.go:7
Struct
RealSubject
RealSubject implements a real subject
Structural/Proxy/proxy.go:23
Struct
Receiver
Receiver implementation.
Behavioral/Command/command.go:30
Struct
Shop
Shop implements a Shop colleague.
Behavioral/Mediator/mediator.go:100
Struct
Singleton
Singleton implementation.
Creational/Singleton/singleton.go:9
Interface
Specification
Invoice Specification Interface
Unsorted/Specification/specification.go:28
Interface
StrategySort
StrategySort provides an interface for sort algorithms.
Behavioral/Strategy/strategy.go:5
Interface
Subject
Subject provides an interface for a real subject and its surrogate.
Structural/Proxy/proxy.go:5
Struct
SushiBar
SushiBar implements the Place interface.
Behavioral/Visitor/visitor.go:55
Interface
Target
Target provides an interface with which the system should work.
Structural/Adapter/adapter.go:5
Struct
ToggleOffCommand
ToggleOffCommand implements the Command interface.
Behavioral/Command/command.go:20
Struct
ToggleOnCommand
ToggleOnCommand implements the Command interface.
Behavioral/Command/command.go:10
Struct
Tree
Tree implements a subsystem "Tree"
Structural/Facade/facade.go:44
Interface
Visitor
Visitor provides a visitor interface.
Behavioral/Visitor/visitor.go:5
TypeAlias
action
action helps clients to find out available actions.
Creational/FactoryMethod/factory_method.go:9