MCPcopy Create free account

hub / github.com/AlexanderGrom/go-patterns / functions

Functions205 in github.com/AlexanderGrom/go-patterns

↓ 7 callersMethodAddMoney
AddMoney adds money.
Behavioral/Mediator/mediator.go:111
↓ 6 callersMethodIsSatisfiedBy
(Invoice)
Unsorted/Specification/specification.go:29
↓ 6 callersMethodRelate
(Specification)
Unsorted/Specification/specification.go:33
↓ 4 callersMethodAdd
(child Component)
Structural/Composite/composite.go:6
↓ 3 callersMethodAdd
Add appends an element to the tree branch.
Structural/Composite/composite.go:19
↓ 3 callersMethodAlert
Alert returns a alert string
Behavioral/State/state.go:15
↓ 3 callersMethodAttach
(observer Observer)
Behavioral/Observer/observer.go:7
↓ 3 callersMethodCreateProduct
(action action)
Creational/FactoryMethod/factory_method.go:19
↓ 3 callersMethodSendRequest
(message int)
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:6
↓ 3 callersMethodSetMediator
SetMediator sets mediator.
Behavioral/Mediator/mediator.go:106
↓ 3 callersMethodSort
([]int)
Behavioral/Strategy/strategy.go:6
↓ 2 callersMethodAccept
(v Visitor)
Behavioral/Visitor/visitor.go:13
↓ 2 callersMethodAlgorithm
Algorithm replaces strategies.
Behavioral/Strategy/strategy.go:57
↓ 2 callersMethodAnd
(Specification)
Unsorted/Specification/specification.go:30
↓ 2 callersMethodGetBottleVolume
Bottle interacts with a water.
Creational/AbstractFactory/abstract_factory.go:18
↓ 2 callersFunctionGetInstance
GetInstance returns singleton
Creational/Singleton/singleton.go:18
↓ 2 callersMethodGetWaterVolume
()
Creational/AbstractFactory/abstract_factory.go:19
↓ 2 callersMethodHas
Has implementation.
Behavioral/Iterator/iterator.go:38
↓ 2 callersMethodName
Name returns name of the Component.
Structural/Composite/composite.go:24
↓ 2 callersFunctionNewDirectory
NewDirectory is constructor.
Structural/Composite/composite.go:67
↓ 2 callersFunctionNewFile
NewFile is constructor.
Structural/Composite/composite.go:74
↓ 2 callersMethodNotify
(msg string)
Behavioral/Mediator/mediator.go:6
↓ 2 callersMethodSend
()
Structural/Proxy/proxy.go:6
↓ 2 callersMethodStoreCommand
StoreCommand adds command.
Behavioral/Command/command.go:49
↓ 1 callersMethodAlert
()
Behavioral/State/state.go:6
↓ 1 callersMethodBorn
Born implementation.
Structural/Facade/facade.go:57
↓ 1 callersMethodBuild
Build implementation.
Structural/Facade/facade.go:39
↓ 1 callersMethodBuyBurger
BuyBurger implementation.
Behavioral/Visitor/visitor.go:92
↓ 1 callersMethodBuyPizza
BuyPizza implementation.
Behavioral/Visitor/visitor.go:78
↓ 1 callersMethodBuySushi
BuySushi implementation.
Behavioral/Visitor/visitor.go:64
↓ 1 callersMethodChild
Child returns child elements.
Structural/Composite/composite.go:29
↓ 1 callersMethodClone
Clone returns a cloned object.
Creational/Prototype/prototype.go:28
↓ 1 callersMethodClose
()
Behavioral/TemplateMethod/template_method.go:9
↓ 1 callersMethodConstruct
Construct tells the builder what to do and in what order.
Creational/Builder/builder.go:17
↓ 1 callersMethodCreateBottle
CreateBottle implementation.
Creational/AbstractFactory/abstract_factory.go:37
↓ 1 callersMethodCreateMemento
CreateMemento returns state storage.
Behavioral/Memento/memento.go:10
↓ 1 callersMethodCreateWater
CreateWater implementation.
Creational/AbstractFactory/abstract_factory.go:32
↓ 1 callersMethodDraw
(width, height int, opacity float64)
Structural/Flyweight/flyweight.go:8
↓ 1 callersMethodExecute
()
Behavioral/Command/command.go:6
↓ 1 callersMethodExecute
Execute all commands.
Behavioral/Command/command.go:61
↓ 1 callersMethodGetFlyweight
GetFlyweight creates or returns a suitable Flyweighter by state.
Structural/Flyweight/flyweight.go:18
↓ 1 callersMethodGetKetchup
GetKetchup returns ketchup.
Behavioral/Mediator/mediator.go:95
↓ 1 callersMethodGetMoney
GetMoney returns money.
Behavioral/Mediator/mediator.go:121
↓ 1 callersMethodGetName
()
Creational/Prototype/prototype.go:7
↓ 1 callersMethodGetName
GetName returns product name
Creational/Prototype/prototype.go:23
↓ 1 callersMethodGetSound
()
Structural/Bridge/bridge.go:11
↓ 1 callersMethodGetState
GetState returns state.
Behavioral/Memento/memento.go:25
↓ 1 callersMethodGetTomato
GetTomato returns tomatos.
Behavioral/Mediator/mediator.go:67
↓ 1 callersMethodGetVolume
()
Creational/AbstractFactory/abstract_factory.go:12
↓ 1 callersMethodGrow
Grow implementation.
Structural/Facade/facade.go:48
↓ 1 callersMethodGrowTomato
GrowTomato implementation.
Behavioral/Mediator/mediator.go:60
↓ 1 callersMethodHas
()
Behavioral/Iterator/iterator.go:8
↓ 1 callersMethodIndex
()
Behavioral/Iterator/iterator.go:6
↓ 1 callersMethodIterator
()
Behavioral/Iterator/iterator.go:17
↓ 1 callersMethodMakeBody
(str string)
Creational/Builder/builder.go:7
↓ 1 callersMethodMakeFooter
(str string)
Creational/Builder/builder.go:8
↓ 1 callersMethodMakeHeader
(str string)
Creational/Builder/builder.go:6
↓ 1 callersMethodMakeKetchup
MakeKetchup implementation.
Behavioral/Mediator/mediator.go:89
↓ 1 callersMethodName
Name returns name of the Component.
Structural/Composite/composite.go:52
↓ 1 callersFunctionNewAdapter
NewAdapter is the Adapter constructor.
Structural/Adapter/adapter.go:14
↓ 1 callersFunctionNewCar
NewCar is the Car constructor.
Structural/Bridge/bridge.go:20
↓ 1 callersFunctionNewCocaColaFactory
NewCocaColaFactory is the CocaColaFactory constructor.
Creational/AbstractFactory/abstract_factory.go:27
↓ 1 callersFunctionNewConcreteProduct
NewConcreteProduct is the Prototyper constructor.
Creational/Prototype/prototype.go:16
↓ 1 callersFunctionNewCreator
NewCreator is the ConcreteCreator constructor.
Creational/FactoryMethod/factory_method.go:32
↓ 1 callersFunctionNewInCollectionSpecification
Constructor
Unsorted/Specification/specification.go:165
↓ 1 callersFunctionNewMan
NewMan creates man.
Structural/Facade/facade.go:9
↓ 1 callersFunctionNewMobileAlert
NewMobileAlert is the MobileAlert constructor.
Behavioral/State/state.go:25
↓ 1 callersFunctionNewNoticeSentSpecification
Constructor
Unsorted/Specification/specification.go:148
↓ 1 callersFunctionNewOverDueSpecification
Constructor
Unsorted/Specification/specification.go:131
↓ 1 callersFunctionNewPublisher
NewPublisher is the Publisher constructor.
Behavioral/Observer/observer.go:24
↓ 1 callersFunctionNewQuotes
NewQuotes is the Quotes constructor.
Behavioral/TemplateMethod/template_method.go:23
↓ 1 callersMethodNext
()
Behavioral/Iterator/iterator.go:9
↓ 1 callersMethodNot
()
Unsorted/Specification/specification.go:32
↓ 1 callersMethodNotify
()
Behavioral/Observer/observer.go:9
↓ 1 callersMethodOpen
()
Behavioral/TemplateMethod/template_method.go:8
↓ 1 callersMethodOperation
()
Structural/Decorator/decorator.go:6
↓ 1 callersMethodOperation
Operation wraps operation of component
Structural/Decorator/decorator.go:24
↓ 1 callersMethodPourWater
(water AbstractWater)
Creational/AbstractFactory/abstract_factory.go:17
↓ 1 callersMethodPrint
(prefix string)
Structural/Composite/composite.go:9
↓ 1 callersMethodPrint
Print returns the branche in string representation.
Structural/Composite/composite.go:34
↓ 1 callersMethodQuotes
Quotes is the Template Method.
Behavioral/TemplateMethod/template_method.go:18
↓ 1 callersMethodRase
Rase implementation.
Structural/Bridge/bridge.go:27
↓ 1 callersMethodRequest
Request is an adaptive method.
Structural/Adapter/adapter.go:29
↓ 1 callersMethodSellKetchup
SellKetchup converts ketchup to money.
Behavioral/Mediator/mediator.go:116
↓ 1 callersMethodSendRequest
SendRequest implementation.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:15
↓ 1 callersMethodSetMemento
SetMemento sets old state.
Behavioral/Memento/memento.go:15
↓ 1 callersMethodSetState
(state string)
Behavioral/Observer/observer.go:8
↓ 1 callersMethodSetState
SetState changes state
Behavioral/State/state.go:20
↓ 1 callersMethodShow
Show returns product.
Creational/Builder/builder.go:49
↓ 1 callersMethodSpecificRequest
SpecificRequest implementation.
Structural/Adapter/adapter.go:19
↓ 1 callersMethodTodo
Todo returns that man must do.
Structural/Facade/facade.go:25
↓ 1 callersMethodToggleOff
ToggleOff implementation.
Behavioral/Command/command.go:39
↓ 1 callersMethodToggleOn
ToggleOn implementation.
Behavioral/Command/command.go:34
↓ 1 callersMethodUpdate
(state string)
Behavioral/Observer/observer.go:14
↓ 1 callersMethodUse
()
Creational/FactoryMethod/factory_method.go:25
↓ 1 callersMethodValue
()
Behavioral/Iterator/iterator.go:7
↓ 1 callersMethodVisitBurgerBar
(p *BurgerBar)
Behavioral/Visitor/visitor.go:8
↓ 1 callersMethodVisitPizzeria
(p *Pizzeria)
Behavioral/Visitor/visitor.go:7
↓ 1 callersMethodVisitSushiBar
(p *SushiBar)
Behavioral/Visitor/visitor.go:6
↓ 1 callersFunctionСonnectСolleagues
СonnectСolleagues connects all colleagues.
Behavioral/Mediator/mediator.go:30
next →1–100 of 205, ranked by callers