Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AlexanderGrom/go-patterns
/ functions
Functions
205 in github.com/AlexanderGrom/go-patterns
⨍
Functions
205
◇
Types & classes
99
↓ 7 callers
Method
AddMoney
AddMoney adds money.
Behavioral/Mediator/mediator.go:111
↓ 6 callers
Method
IsSatisfiedBy
(Invoice)
Unsorted/Specification/specification.go:29
↓ 6 callers
Method
Relate
(Specification)
Unsorted/Specification/specification.go:33
↓ 4 callers
Method
Add
(child Component)
Structural/Composite/composite.go:6
↓ 3 callers
Method
Add
Add appends an element to the tree branch.
Structural/Composite/composite.go:19
↓ 3 callers
Method
Alert
Alert returns a alert string
Behavioral/State/state.go:15
↓ 3 callers
Method
Attach
(observer Observer)
Behavioral/Observer/observer.go:7
↓ 3 callers
Method
CreateProduct
(action action)
Creational/FactoryMethod/factory_method.go:19
↓ 3 callers
Method
SendRequest
(message int)
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:6
↓ 3 callers
Method
SetMediator
SetMediator sets mediator.
Behavioral/Mediator/mediator.go:106
↓ 3 callers
Method
Sort
([]int)
Behavioral/Strategy/strategy.go:6
↓ 2 callers
Method
Accept
(v Visitor)
Behavioral/Visitor/visitor.go:13
↓ 2 callers
Method
Algorithm
Algorithm replaces strategies.
Behavioral/Strategy/strategy.go:57
↓ 2 callers
Method
And
(Specification)
Unsorted/Specification/specification.go:30
↓ 2 callers
Method
GetBottleVolume
Bottle interacts with a water.
Creational/AbstractFactory/abstract_factory.go:18
↓ 2 callers
Function
GetInstance
GetInstance returns singleton
Creational/Singleton/singleton.go:18
↓ 2 callers
Method
GetWaterVolume
()
Creational/AbstractFactory/abstract_factory.go:19
↓ 2 callers
Method
Has
Has implementation.
Behavioral/Iterator/iterator.go:38
↓ 2 callers
Method
Name
Name returns name of the Component.
Structural/Composite/composite.go:24
↓ 2 callers
Function
NewDirectory
NewDirectory is constructor.
Structural/Composite/composite.go:67
↓ 2 callers
Function
NewFile
NewFile is constructor.
Structural/Composite/composite.go:74
↓ 2 callers
Method
Notify
(msg string)
Behavioral/Mediator/mediator.go:6
↓ 2 callers
Method
Send
()
Structural/Proxy/proxy.go:6
↓ 2 callers
Method
StoreCommand
StoreCommand adds command.
Behavioral/Command/command.go:49
↓ 1 callers
Method
Alert
()
Behavioral/State/state.go:6
↓ 1 callers
Method
Born
Born implementation.
Structural/Facade/facade.go:57
↓ 1 callers
Method
Build
Build implementation.
Structural/Facade/facade.go:39
↓ 1 callers
Method
BuyBurger
BuyBurger implementation.
Behavioral/Visitor/visitor.go:92
↓ 1 callers
Method
BuyPizza
BuyPizza implementation.
Behavioral/Visitor/visitor.go:78
↓ 1 callers
Method
BuySushi
BuySushi implementation.
Behavioral/Visitor/visitor.go:64
↓ 1 callers
Method
Child
Child returns child elements.
Structural/Composite/composite.go:29
↓ 1 callers
Method
Clone
Clone returns a cloned object.
Creational/Prototype/prototype.go:28
↓ 1 callers
Method
Close
()
Behavioral/TemplateMethod/template_method.go:9
↓ 1 callers
Method
Construct
Construct tells the builder what to do and in what order.
Creational/Builder/builder.go:17
↓ 1 callers
Method
CreateBottle
CreateBottle implementation.
Creational/AbstractFactory/abstract_factory.go:37
↓ 1 callers
Method
CreateMemento
CreateMemento returns state storage.
Behavioral/Memento/memento.go:10
↓ 1 callers
Method
CreateWater
CreateWater implementation.
Creational/AbstractFactory/abstract_factory.go:32
↓ 1 callers
Method
Draw
(width, height int, opacity float64)
Structural/Flyweight/flyweight.go:8
↓ 1 callers
Method
Execute
()
Behavioral/Command/command.go:6
↓ 1 callers
Method
Execute
Execute all commands.
Behavioral/Command/command.go:61
↓ 1 callers
Method
GetFlyweight
GetFlyweight creates or returns a suitable Flyweighter by state.
Structural/Flyweight/flyweight.go:18
↓ 1 callers
Method
GetKetchup
GetKetchup returns ketchup.
Behavioral/Mediator/mediator.go:95
↓ 1 callers
Method
GetMoney
GetMoney returns money.
Behavioral/Mediator/mediator.go:121
↓ 1 callers
Method
GetName
()
Creational/Prototype/prototype.go:7
↓ 1 callers
Method
GetName
GetName returns product name
Creational/Prototype/prototype.go:23
↓ 1 callers
Method
GetSound
()
Structural/Bridge/bridge.go:11
↓ 1 callers
Method
GetState
GetState returns state.
Behavioral/Memento/memento.go:25
↓ 1 callers
Method
GetTomato
GetTomato returns tomatos.
Behavioral/Mediator/mediator.go:67
↓ 1 callers
Method
GetVolume
()
Creational/AbstractFactory/abstract_factory.go:12
↓ 1 callers
Method
Grow
Grow implementation.
Structural/Facade/facade.go:48
↓ 1 callers
Method
GrowTomato
GrowTomato implementation.
Behavioral/Mediator/mediator.go:60
↓ 1 callers
Method
Has
()
Behavioral/Iterator/iterator.go:8
↓ 1 callers
Method
Index
()
Behavioral/Iterator/iterator.go:6
↓ 1 callers
Method
Iterator
()
Behavioral/Iterator/iterator.go:17
↓ 1 callers
Method
MakeBody
(str string)
Creational/Builder/builder.go:7
↓ 1 callers
Method
MakeFooter
(str string)
Creational/Builder/builder.go:8
↓ 1 callers
Method
MakeHeader
(str string)
Creational/Builder/builder.go:6
↓ 1 callers
Method
MakeKetchup
MakeKetchup implementation.
Behavioral/Mediator/mediator.go:89
↓ 1 callers
Method
Name
Name returns name of the Component.
Structural/Composite/composite.go:52
↓ 1 callers
Function
NewAdapter
NewAdapter is the Adapter constructor.
Structural/Adapter/adapter.go:14
↓ 1 callers
Function
NewCar
NewCar is the Car constructor.
Structural/Bridge/bridge.go:20
↓ 1 callers
Function
NewCocaColaFactory
NewCocaColaFactory is the CocaColaFactory constructor.
Creational/AbstractFactory/abstract_factory.go:27
↓ 1 callers
Function
NewConcreteProduct
NewConcreteProduct is the Prototyper constructor.
Creational/Prototype/prototype.go:16
↓ 1 callers
Function
NewCreator
NewCreator is the ConcreteCreator constructor.
Creational/FactoryMethod/factory_method.go:32
↓ 1 callers
Function
NewInCollectionSpecification
Constructor
Unsorted/Specification/specification.go:165
↓ 1 callers
Function
NewMan
NewMan creates man.
Structural/Facade/facade.go:9
↓ 1 callers
Function
NewMobileAlert
NewMobileAlert is the MobileAlert constructor.
Behavioral/State/state.go:25
↓ 1 callers
Function
NewNoticeSentSpecification
Constructor
Unsorted/Specification/specification.go:148
↓ 1 callers
Function
NewOverDueSpecification
Constructor
Unsorted/Specification/specification.go:131
↓ 1 callers
Function
NewPublisher
NewPublisher is the Publisher constructor.
Behavioral/Observer/observer.go:24
↓ 1 callers
Function
NewQuotes
NewQuotes is the Quotes constructor.
Behavioral/TemplateMethod/template_method.go:23
↓ 1 callers
Method
Next
()
Behavioral/Iterator/iterator.go:9
↓ 1 callers
Method
Not
()
Unsorted/Specification/specification.go:32
↓ 1 callers
Method
Notify
()
Behavioral/Observer/observer.go:9
↓ 1 callers
Method
Open
()
Behavioral/TemplateMethod/template_method.go:8
↓ 1 callers
Method
Operation
()
Structural/Decorator/decorator.go:6
↓ 1 callers
Method
Operation
Operation wraps operation of component
Structural/Decorator/decorator.go:24
↓ 1 callers
Method
PourWater
(water AbstractWater)
Creational/AbstractFactory/abstract_factory.go:17
↓ 1 callers
Method
Print
(prefix string)
Structural/Composite/composite.go:9
↓ 1 callers
Method
Print
Print returns the branche in string representation.
Structural/Composite/composite.go:34
↓ 1 callers
Method
Quotes
Quotes is the Template Method.
Behavioral/TemplateMethod/template_method.go:18
↓ 1 callers
Method
Rase
Rase implementation.
Structural/Bridge/bridge.go:27
↓ 1 callers
Method
Request
Request is an adaptive method.
Structural/Adapter/adapter.go:29
↓ 1 callers
Method
SellKetchup
SellKetchup converts ketchup to money.
Behavioral/Mediator/mediator.go:116
↓ 1 callers
Method
SendRequest
SendRequest implementation.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:15
↓ 1 callers
Method
SetMemento
SetMemento sets old state.
Behavioral/Memento/memento.go:15
↓ 1 callers
Method
SetState
(state string)
Behavioral/Observer/observer.go:8
↓ 1 callers
Method
SetState
SetState changes state
Behavioral/State/state.go:20
↓ 1 callers
Method
Show
Show returns product.
Creational/Builder/builder.go:49
↓ 1 callers
Method
SpecificRequest
SpecificRequest implementation.
Structural/Adapter/adapter.go:19
↓ 1 callers
Method
Todo
Todo returns that man must do.
Structural/Facade/facade.go:25
↓ 1 callers
Method
ToggleOff
ToggleOff implementation.
Behavioral/Command/command.go:39
↓ 1 callers
Method
ToggleOn
ToggleOn implementation.
Behavioral/Command/command.go:34
↓ 1 callers
Method
Update
(state string)
Behavioral/Observer/observer.go:14
↓ 1 callers
Method
Use
()
Creational/FactoryMethod/factory_method.go:25
↓ 1 callers
Method
Value
()
Behavioral/Iterator/iterator.go:7
↓ 1 callers
Method
VisitBurgerBar
(p *BurgerBar)
Behavioral/Visitor/visitor.go:8
↓ 1 callers
Method
VisitPizzeria
(p *Pizzeria)
Behavioral/Visitor/visitor.go:7
↓ 1 callers
Method
VisitSushiBar
(p *SushiBar)
Behavioral/Visitor/visitor.go:6
↓ 1 callers
Function
СonnectСolleagues
СonnectСolleagues connects all colleagues.
Behavioral/Mediator/mediator.go:30
next →
1–100 of 205, ranked by callers