Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Go-Design-Patterns
/ functions
Functions
336 in github.com/PacktPublishing/Go-Design-Patterns
⨍
Functions
336
◇
Types & classes
169
Method
PrintStored
()
Chapter03/adapter/adapter.go:24
Method
Read
(p []byte)
Chapter04/test.go:137
Method
Read
()
Chapter06/interpreter/oo_interpreter/interpreter.go:19
Method
Read
()
Chapter06/interpreter/oo_interpreter/interpreter.go:28
Method
Read
()
Chapter06/interpreter/oo_interpreter/interpreter.go:37
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
Chapter04/decorator/server/server_decorator.go:22
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
Chapter04/decorator/server/server_decorator.go:37
Method
SetLog
(io.Writer)
Chapter05/strategy/example2/output_strategy.go:7
Method
SetLog
(w io.Writer)
Chapter05/strategy/example2/output_strategy.go:16
Method
SetSeats
()
Chapter02/builder.go:40
Method
SetSeats
()
Chapter02/builder.go:64
Method
SetSeats
()
Chapter02/builder.go:88
Method
SetStructure
()
Chapter02/builder.go:45
Method
SetStructure
()
Chapter02/builder.go:69
Method
SetStructure
()
Chapter02/builder.go:93
Method
SetWheels
()
Chapter02/builder.go:35
Method
SetWheels
()
Chapter02/builder.go:59
Method
SetWheels
()
Chapter02/builder.go:83
Method
SetWriter
(w io.Writer)
Chapter05/strategy/example2/output_strategy.go:20
Method
Success
(f SuccessFunc)
Chapter09/09_06.go:12
Method
Success
(f SuccessFunc)
Chapter09/09_05.go:10
Method
Swap
(i, j int)
Chapter06/template/sort/sort_example.go:14
Function
Swim
()
Chapter03/composite/composite.go:9
Method
Swim
()
Chapter03/composite/composite.go:29
Function
TestAdapter
(t *testing.T)
Chapter03/adapter/adapter_test.go:5
Function
TestAnimal_Swim
(t *testing.T)
Chapter03/composite/composite_test.go:19
Function
TestAthlete_Train
(t *testing.T)
Chapter03/composite/composite_test.go:5
Function
TestBarrier
(t *testing.T)
Chapter09/09_01.go:11
Function
TestBuilderPattern
(t *testing.T)
Chapter02/builder_test.go:5
Function
TestCalculate
(t *testing.T)
Chapter06/interpreter/interpreter_test.go:5
Function
TestCarFactory
(t *testing.T)
Chapter02/abstract_factory/vehicle_factory_test.go:43
Function
TestCareTaker_Add
(t *testing.T)
Chapter06/memento/memento_test.go:5
Function
TestCareTaker_Memento
(t *testing.T)
Chapter06/memento/memento_test.go:24
Function
TestClone
(t *testing.T)
Chapter02/prototype_test.go:5
Function
TestCreateDefaultChain
(t *testing.T)
Chapter05/chain-of-responsability/chain_test.go:23
Function
TestDivide
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:55
Function
TestGetInstance
(t *testing.T)
Chapter02/singleton_test.go:5
Function
TestGetPaymentMethodCash
(t *testing.T)
Chapter02/factory_test.go:8
Function
TestGetPaymentMethodDebitCard
(t *testing.T)
Chapter02/factory_test.go:21
Function
TestGetPaymentMethodNonExistent
(t *testing.T)
Chapter02/factory_test.go:33
Function
TestLaunchPipeline
(t *testing.T)
Chapter09/09_07.go:5
Function
TestMeat_AddIngredient
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:41
Function
TestMotorbikeFactory
(t *testing.T)
Chapter02/abstract_factory/vehicle_factory_test.go:5
Function
TestMultiply
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:38
Function
TestMultiply
(t *testing.T)
Chapter01/testing/multiply/main_test.go:5
Function
TestNormalPrinter_Print
(t *testing.T)
Chapter03/bridge/bridge_test.go:60
Function
TestOnion_AddIngredient
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:21
Function
TestOpenWeatherMap_responseParser
(t *testing.T)
Chapter04/facade/facade_test.go:69
Function
TestOriginator_ExtractAndStoreState
(t *testing.T)
Chapter06/memento/memento_test.go:46
Function
TestPacktPrinter_Print
(t *testing.T)
Chapter03/bridge/bridge_test.go:91
Function
TestPizzaDecorator_AddIngredient
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:8
Function
TestPizzaDecorator_FullStack
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:61
Function
TestPrintAPI1
(t *testing.T)
Chapter03/bridge/bridge_test.go:9
Function
TestPrintAPI2
(t *testing.T)
Chapter03/bridge/bridge_test.go:33
Function
TestSon_GetParentField
(t *testing.T)
Chapter03/composite/composite_test.go:51
Function
TestStartInstance
(t *testing.T)
Chapter08/08_16.go:8
Function
TestStringOrError_Execute
(t *testing.T)
Chapter09/09_04.go:9
Function
TestSubject
(t *testing.T)
Chapter07/observer/observer_test.go:18
Function
TestSubtract
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:21
Function
TestSum
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:5
Function
TestSum
(t *testing.T)
Chapter01/testing/main_test.go:5
Function
TestSwimmer_Swim
(t *testing.T)
Chapter03/composite/composite_test.go:10
Function
TestSwimmer_Swim2
(t *testing.T)
Chapter03/composite/composite_test.go:28
Function
TestTeamFlyweightFactory_GetTeam
(t *testing.T)
Chapter04/flyweight/flyweight_test.go:8
Function
TestTemplate_ExecuteAlgorithm
(t *testing.T)
Chapter06/template/template_test.go:16
Function
TestTree
(t *testing.T)
Chapter03/composite/composite_test.go:38
Function
Test_HighVolume
(t *testing.T)
Chapter04/flyweight/flyweight_test.go:30
Function
Test_Integration_OpenWeatherMap_GetWeatherByCityName
(t *testing.T)
Chapter04/facade/facade_test.go:18
Function
Test_Integration_OpenWeatherMap_GetWeatherByGeographicalCoordinates
(t *testing.T)
Chapter04/facade/facade_test.go:41
Function
Test_Overall
(t *testing.T)
Chapter07/visitor/visitor_test.go:14
Function
Test_UserListProxy
(t *testing.T)
Chapter04/proxy/proxy_test.go:8
Function
TryFunc
(d DoerFunc)
Chapter04/test.go:26
Method
Visit
(p ProductInfoRetriever)
Chapter07/visitor/visitor2/visitor.go:71
Method
Visit
(p ProductInfoRetriever)
Chapter07/visitor/visitor2/visitor.go:79
Method
VisitA
(m *MessageA)
Chapter07/visitor/visitor.go:57
Method
VisitA
(m *MessageA)
Chapter07/visitor/visitor.go:66
Method
VisitB
(m *MessageB)
Chapter07/visitor/visitor.go:60
Method
VisitB
(m *MessageB)
Chapter07/visitor/visitor.go:69
Method
Write
(p []byte)
Chapter07/visitor/visitor_test.go:9
Function
captureBarrierOutput
(endpoints ...string)
Chapter09/09_02.go:11
Function
compositionIsNotInheritance
()
Chapter04/test.go:73
Method
executeState
(*GameContext)
Chapter07/state/state.go:12
Method
executeState
(c *GameContext)
Chapter07/state/state.go:23
Method
executeState
(c *GameContext)
Chapter07/state/state.go:35
Method
executeState
(c *GameContext)
Chapter07/state/state.go:46
Method
executeState
(c *GameContext)
Chapter07/state/state_refactored/state.go:23
Method
executeState
(c *GameContext)
Chapter07/state/state_refactored/state.go:36
Method
executeState
(c *GameContext)
Chapter07/state/state_refactored/state.go:48
Method
executeState
(c *GameContext)
Chapter07/state/state_refactored/state.go:69
Method
executeState
(c *GameContext)
Chapter07/state/state_refactored/state.go:77
Method
first
()
Chapter06/template/simple_template.go:10
Function
init
()
Chapter04/facade/facade_test.go:14
Function
main
()
Chapter04/test.go:30
Function
main
()
Chapter04/decorator/server/server_decorator.go:51
Function
main
()
Chapter07/state/state.go:65
Function
main
()
Chapter07/state/state_refactored/state.go:82
Function
main
MAIN -------------------------------------------------------------------
Chapter07/visitor/visitor2/visitor.go:85
Function
main
--------------------------------------------------------------------
Chapter06/memento/memento_command/memento_command.go:82
Function
main
()
Chapter06/interpreter/oo_interpreter/interpreter.go:77
Function
main
()
Chapter06/template/sort/sort_example.go:22
← previous
next →
201–300 of 336, ranked by callers