MCPcopy Create free account

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

Functions205 in github.com/AlexanderGrom/go-patterns

MethodAccept
Accept implements a visit to all places in the city.
Behavioral/Visitor/visitor.go:46
MethodAccept
Accept implementation.
Behavioral/Visitor/visitor.go:59
MethodAccept
Accept implementation.
Behavioral/Visitor/visitor.go:73
MethodAccept
Accept implementation.
Behavioral/Visitor/visitor.go:87
MethodAdd
Add implementation.
Structural/Composite/composite.go:48
MethodAdd
Add adds an item to the collection.
Behavioral/Iterator/iterator.go:84
MethodAdd
Add appends Place to the collection.
Behavioral/Visitor/visitor.go:41
MethodAddMoney
AddMoney adds money.
Behavioral/Mediator/mediator.go:55
MethodAddMoney
AddMoney adds money.
Behavioral/Mediator/mediator.go:84
MethodAlert
Alert returns a alert string
Behavioral/State/state.go:34
MethodAlert
Alert returns a alert string
Behavioral/State/state.go:43
MethodAnd
Condition AND
Unsorted/Specification/specification.go:49
MethodAttach
Attach a Observer
Behavioral/Observer/observer.go:29
MethodChild
()
Structural/Composite/composite.go:8
MethodChild
Child implementation.
Structural/Composite/composite.go:57
MethodClone
()
Creational/Prototype/prototype.go:6
MethodClose
Close sets closing quotes.
Behavioral/TemplateMethod/template_method.go:37
MethodClose
Close sets closing quotes.
Behavioral/TemplateMethod/template_method.go:51
MethodCreateBottle
(volume float64)
Creational/AbstractFactory/abstract_factory.go:7
MethodCreateProduct
CreateProduct is a Factory Method.
Creational/FactoryMethod/factory_method.go:37
MethodCreateWater
(volume float64)
Creational/AbstractFactory/abstract_factory.go:6
MethodDraw
Draw draws image. Args width, height and opacity is external state.
Structural/Flyweight/flyweight.go:34
MethodEnd
()
Behavioral/Iterator/iterator.go:12
MethodEnd
End goes to the last item.
Behavioral/Iterator/iterator.go:68
FunctionExampleObserver
()
Behavioral/Observer/observer_test.go:3
MethodExecute
Execute command.
Behavioral/Command/command.go:15
MethodExecute
Execute command.
Behavioral/Command/command.go:25
MethodGetBottleVolume
GetBottleVolume returns volume of bottle.
Creational/AbstractFactory/abstract_factory.go:63
MethodGetSound
GetSound returns sound of the engine.
Structural/Bridge/bridge.go:36
MethodGetSound
GetSound returns sound of the engine.
Structural/Bridge/bridge.go:45
MethodGetSound
GetSound returns sound of the engine.
Structural/Bridge/bridge.go:54
MethodGetVolume
GetVolume returns volume of drink.
Creational/AbstractFactory/abstract_factory.go:47
MethodGetWaterVolume
GetWaterVolume returns volume of water.
Creational/AbstractFactory/abstract_factory.go:68
MethodIndex
Index returns current index
Behavioral/Iterator/iterator.go:28
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:44
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:89
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:102
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:114
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:126
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:143
MethodIsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:160
MethodIterator
Iterator creates and returns the iterator over the collection.
Behavioral/Iterator/iterator.go:79
MethodMakeBody
MakeBody builds a body of document.
Creational/Builder/builder.go:34
MethodMakeFooter
MakeFooter builds a footer of document.
Creational/Builder/builder.go:39
MethodMakeHeader
MakeHeader builds a header of document..
Creational/Builder/builder.go:29
MethodName
()
Structural/Composite/composite.go:7
MethodNext
Next goes to the next item.
Behavioral/Iterator/iterator.go:46
MethodNot
Condition NOT
Unsorted/Specification/specification.go:67
MethodNotify
Notify implementation.
Behavioral/Mediator/mediator.go:17
MethodNotify
Notify sends notifications to subscribers. Push model.
Behavioral/Observer/observer.go:40
MethodOpen
Open sets opening quotes.
Behavioral/TemplateMethod/template_method.go:32
MethodOpen
Open sets opening quotes.
Behavioral/TemplateMethod/template_method.go:46
MethodOperation
Operation implementation.
Structural/Decorator/decorator.go:14
MethodOr
(Specification)
Unsorted/Specification/specification.go:31
MethodOr
Condition OR
Unsorted/Specification/specification.go:58
MethodPourWater
PourWater pours water into a bottle.
Creational/AbstractFactory/abstract_factory.go:58
MethodPrev
()
Behavioral/Iterator/iterator.go:10
MethodPrev
Prev goes to the previous item.
Behavioral/Iterator/iterator.go:54
MethodPrint
Print returns the leave in string representation.
Structural/Composite/composite.go:62
MethodRase
()
Structural/Bridge/bridge.go:6
MethodRelate
Relate to specification
Unsorted/Specification/specification.go:76
MethodRequest
()
Structural/Adapter/adapter.go:6
MethodReset
()
Behavioral/Iterator/iterator.go:11
MethodReset
Reset resets iterator.
Behavioral/Iterator/iterator.go:62
MethodSend
Send sends a message
Structural/Proxy/proxy.go:15
MethodSend
Send sends a message
Structural/Proxy/proxy.go:27
MethodSendRequest
SendRequest implementation.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:30
MethodSendRequest
SendRequest implementation.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:45
MethodSetMediator
SetMediator sets mediator.
Behavioral/Mediator/mediator.go:50
MethodSetMediator
SetMediator sets mediator.
Behavioral/Mediator/mediator.go:79
MethodSetState
SetState sets new state
Behavioral/Observer/observer.go:34
MethodSort
Sort sorts data.
Behavioral/Strategy/strategy.go:14
MethodSort
Sort sorts data.
Behavioral/Strategy/strategy.go:33
MethodSort
Sort sorts data according to the chosen strategy.
Behavioral/Strategy/strategy.go:62
FunctionTestAbstractFactory
(t *testing.T)
Creational/AbstractFactory/abstract_factory_test.go:7
FunctionTestAdapter
(t *testing.T)
Structural/Adapter/adapter_test.go:7
FunctionTestBridge
(t *testing.T)
Structural/Bridge/bridge_test.go:7
FunctionTestBuilder
(t *testing.T)
Creational/Builder/builder_test.go:7
FunctionTestChainOfResponsibility
(t *testing.T)
Behavioral/ChainOfResponsibility/chain_of_responsibility_test.go:7
FunctionTestCommand
(t *testing.T)
Behavioral/Command/command_test.go:7
FunctionTestComposite
(t *testing.T)
Structural/Composite/composite_test.go:7
FunctionTestDecorator
(t *testing.T)
Structural/Decorator/decorator_test.go:7
FunctionTestFacade
(t *testing.T)
Structural/Facade/facade_test.go:7
FunctionTestFactoryMethod
(t *testing.T)
Creational/FactoryMethod/factory_method_test.go:7
FunctionTestFlyweight
(t *testing.T)
Structural/Flyweight/flyweight_test.go:8
FunctionTestIterator
(t *testing.T)
Behavioral/Iterator/iterator_test.go:7
FunctionTestMediator
(t *testing.T)
Behavioral/Mediator/mediator_test.go:7
FunctionTestMomento
(t *testing.T)
Behavioral/Memento/memento_test.go:7
FunctionTestPrototype
(t *testing.T)
Creational/Prototype/prototype_test.go:7
FunctionTestProxy
(t *testing.T)
Structural/Proxy/proxy_test.go:7
FunctionTestSingleton
(t *testing.T)
Creational/Singleton/singleton_test.go:7
FunctionTestSpecification
(t *testing.T)
Unsorted/Specification/specification_test.go:7
FunctionTestState
(t *testing.T)
Behavioral/State/state_test.go:7
FunctionTestStrategy
(t *testing.T)
Behavioral/Strategy/strategy_test.go:8
FunctionTestTemplateMethod
(t *testing.T)
Behavioral/TemplateMethod/template_method_test.go:7
FunctionTestVisitor
(t *testing.T)
Behavioral/Visitor/visitor_test.go:7
MethodUnStoreCommand
UnStoreCommand removes command.
Behavioral/Command/command.go:54
MethodUpdate
Update set new state
Behavioral/Observer/observer.go:52
MethodUse
Use returns product action.
Creational/FactoryMethod/factory_method.go:60
MethodUse
Use returns product action.
Creational/FactoryMethod/factory_method.go:70
← previousnext →101–200 of 205, ranked by callers