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
Method
Accept
Accept implements a visit to all places in the city.
Behavioral/Visitor/visitor.go:46
Method
Accept
Accept implementation.
Behavioral/Visitor/visitor.go:59
Method
Accept
Accept implementation.
Behavioral/Visitor/visitor.go:73
Method
Accept
Accept implementation.
Behavioral/Visitor/visitor.go:87
Method
Add
Add implementation.
Structural/Composite/composite.go:48
Method
Add
Add adds an item to the collection.
Behavioral/Iterator/iterator.go:84
Method
Add
Add appends Place to the collection.
Behavioral/Visitor/visitor.go:41
Method
AddMoney
AddMoney adds money.
Behavioral/Mediator/mediator.go:55
Method
AddMoney
AddMoney adds money.
Behavioral/Mediator/mediator.go:84
Method
Alert
Alert returns a alert string
Behavioral/State/state.go:34
Method
Alert
Alert returns a alert string
Behavioral/State/state.go:43
Method
And
Condition AND
Unsorted/Specification/specification.go:49
Method
Attach
Attach a Observer
Behavioral/Observer/observer.go:29
Method
Child
()
Structural/Composite/composite.go:8
Method
Child
Child implementation.
Structural/Composite/composite.go:57
Method
Clone
()
Creational/Prototype/prototype.go:6
Method
Close
Close sets closing quotes.
Behavioral/TemplateMethod/template_method.go:37
Method
Close
Close sets closing quotes.
Behavioral/TemplateMethod/template_method.go:51
Method
CreateBottle
(volume float64)
Creational/AbstractFactory/abstract_factory.go:7
Method
CreateProduct
CreateProduct is a Factory Method.
Creational/FactoryMethod/factory_method.go:37
Method
CreateWater
(volume float64)
Creational/AbstractFactory/abstract_factory.go:6
Method
Draw
Draw draws image. Args width, height and opacity is external state.
Structural/Flyweight/flyweight.go:34
Method
End
()
Behavioral/Iterator/iterator.go:12
Method
End
End goes to the last item.
Behavioral/Iterator/iterator.go:68
Function
ExampleObserver
()
Behavioral/Observer/observer_test.go:3
Method
Execute
Execute command.
Behavioral/Command/command.go:15
Method
Execute
Execute command.
Behavioral/Command/command.go:25
Method
GetBottleVolume
GetBottleVolume returns volume of bottle.
Creational/AbstractFactory/abstract_factory.go:63
Method
GetSound
GetSound returns sound of the engine.
Structural/Bridge/bridge.go:36
Method
GetSound
GetSound returns sound of the engine.
Structural/Bridge/bridge.go:45
Method
GetSound
GetSound returns sound of the engine.
Structural/Bridge/bridge.go:54
Method
GetVolume
GetVolume returns volume of drink.
Creational/AbstractFactory/abstract_factory.go:47
Method
GetWaterVolume
GetWaterVolume returns volume of water.
Creational/AbstractFactory/abstract_factory.go:68
Method
Index
Index returns current index
Behavioral/Iterator/iterator.go:28
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:44
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:89
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:102
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:114
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:126
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:143
Method
IsSatisfiedBy
Check specification
Unsorted/Specification/specification.go:160
Method
Iterator
Iterator creates and returns the iterator over the collection.
Behavioral/Iterator/iterator.go:79
Method
MakeBody
MakeBody builds a body of document.
Creational/Builder/builder.go:34
Method
MakeFooter
MakeFooter builds a footer of document.
Creational/Builder/builder.go:39
Method
MakeHeader
MakeHeader builds a header of document..
Creational/Builder/builder.go:29
Method
Name
()
Structural/Composite/composite.go:7
Method
Next
Next goes to the next item.
Behavioral/Iterator/iterator.go:46
Method
Not
Condition NOT
Unsorted/Specification/specification.go:67
Method
Notify
Notify implementation.
Behavioral/Mediator/mediator.go:17
Method
Notify
Notify sends notifications to subscribers. Push model.
Behavioral/Observer/observer.go:40
Method
Open
Open sets opening quotes.
Behavioral/TemplateMethod/template_method.go:32
Method
Open
Open sets opening quotes.
Behavioral/TemplateMethod/template_method.go:46
Method
Operation
Operation implementation.
Structural/Decorator/decorator.go:14
Method
Or
(Specification)
Unsorted/Specification/specification.go:31
Method
Or
Condition OR
Unsorted/Specification/specification.go:58
Method
PourWater
PourWater pours water into a bottle.
Creational/AbstractFactory/abstract_factory.go:58
Method
Prev
()
Behavioral/Iterator/iterator.go:10
Method
Prev
Prev goes to the previous item.
Behavioral/Iterator/iterator.go:54
Method
Print
Print returns the leave in string representation.
Structural/Composite/composite.go:62
Method
Rase
()
Structural/Bridge/bridge.go:6
Method
Relate
Relate to specification
Unsorted/Specification/specification.go:76
Method
Request
()
Structural/Adapter/adapter.go:6
Method
Reset
()
Behavioral/Iterator/iterator.go:11
Method
Reset
Reset resets iterator.
Behavioral/Iterator/iterator.go:62
Method
Send
Send sends a message
Structural/Proxy/proxy.go:15
Method
Send
Send sends a message
Structural/Proxy/proxy.go:27
Method
SendRequest
SendRequest implementation.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:30
Method
SendRequest
SendRequest implementation.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:45
Method
SetMediator
SetMediator sets mediator.
Behavioral/Mediator/mediator.go:50
Method
SetMediator
SetMediator sets mediator.
Behavioral/Mediator/mediator.go:79
Method
SetState
SetState sets new state
Behavioral/Observer/observer.go:34
Method
Sort
Sort sorts data.
Behavioral/Strategy/strategy.go:14
Method
Sort
Sort sorts data.
Behavioral/Strategy/strategy.go:33
Method
Sort
Sort sorts data according to the chosen strategy.
Behavioral/Strategy/strategy.go:62
Function
TestAbstractFactory
(t *testing.T)
Creational/AbstractFactory/abstract_factory_test.go:7
Function
TestAdapter
(t *testing.T)
Structural/Adapter/adapter_test.go:7
Function
TestBridge
(t *testing.T)
Structural/Bridge/bridge_test.go:7
Function
TestBuilder
(t *testing.T)
Creational/Builder/builder_test.go:7
Function
TestChainOfResponsibility
(t *testing.T)
Behavioral/ChainOfResponsibility/chain_of_responsibility_test.go:7
Function
TestCommand
(t *testing.T)
Behavioral/Command/command_test.go:7
Function
TestComposite
(t *testing.T)
Structural/Composite/composite_test.go:7
Function
TestDecorator
(t *testing.T)
Structural/Decorator/decorator_test.go:7
Function
TestFacade
(t *testing.T)
Structural/Facade/facade_test.go:7
Function
TestFactoryMethod
(t *testing.T)
Creational/FactoryMethod/factory_method_test.go:7
Function
TestFlyweight
(t *testing.T)
Structural/Flyweight/flyweight_test.go:8
Function
TestIterator
(t *testing.T)
Behavioral/Iterator/iterator_test.go:7
Function
TestMediator
(t *testing.T)
Behavioral/Mediator/mediator_test.go:7
Function
TestMomento
(t *testing.T)
Behavioral/Memento/memento_test.go:7
Function
TestPrototype
(t *testing.T)
Creational/Prototype/prototype_test.go:7
Function
TestProxy
(t *testing.T)
Structural/Proxy/proxy_test.go:7
Function
TestSingleton
(t *testing.T)
Creational/Singleton/singleton_test.go:7
Function
TestSpecification
(t *testing.T)
Unsorted/Specification/specification_test.go:7
Function
TestState
(t *testing.T)
Behavioral/State/state_test.go:7
Function
TestStrategy
(t *testing.T)
Behavioral/Strategy/strategy_test.go:8
Function
TestTemplateMethod
(t *testing.T)
Behavioral/TemplateMethod/template_method_test.go:7
Function
TestVisitor
(t *testing.T)
Behavioral/Visitor/visitor_test.go:7
Method
UnStoreCommand
UnStoreCommand removes command.
Behavioral/Command/command.go:54
Method
Update
Update set new state
Behavioral/Observer/observer.go:52
Method
Use
Use returns product action.
Creational/FactoryMethod/factory_method.go:60
Method
Use
Use returns product action.
Creational/FactoryMethod/factory_method.go:70
← previous
next →
101–200 of 205, ranked by callers