MCPcopy Create free account

hub / github.com/PacktPublishing/Go-Design-Patterns / functions

Functions336 in github.com/PacktPublishing/Go-Design-Patterns

MethodPrintStored
()
Chapter03/adapter/adapter.go:24
MethodRead
(p []byte)
Chapter04/test.go:137
MethodRead
()
Chapter06/interpreter/oo_interpreter/interpreter.go:19
MethodRead
()
Chapter06/interpreter/oo_interpreter/interpreter.go:28
MethodRead
()
Chapter06/interpreter/oo_interpreter/interpreter.go:37
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
Chapter04/decorator/server/server_decorator.go:22
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
Chapter04/decorator/server/server_decorator.go:37
MethodSetLog
(io.Writer)
Chapter05/strategy/example2/output_strategy.go:7
MethodSetLog
(w io.Writer)
Chapter05/strategy/example2/output_strategy.go:16
MethodSetSeats
()
Chapter02/builder.go:40
MethodSetSeats
()
Chapter02/builder.go:64
MethodSetSeats
()
Chapter02/builder.go:88
MethodSetStructure
()
Chapter02/builder.go:45
MethodSetStructure
()
Chapter02/builder.go:69
MethodSetStructure
()
Chapter02/builder.go:93
MethodSetWheels
()
Chapter02/builder.go:35
MethodSetWheels
()
Chapter02/builder.go:59
MethodSetWheels
()
Chapter02/builder.go:83
MethodSetWriter
(w io.Writer)
Chapter05/strategy/example2/output_strategy.go:20
MethodSuccess
(f SuccessFunc)
Chapter09/09_06.go:12
MethodSuccess
(f SuccessFunc)
Chapter09/09_05.go:10
MethodSwap
(i, j int)
Chapter06/template/sort/sort_example.go:14
FunctionSwim
()
Chapter03/composite/composite.go:9
MethodSwim
()
Chapter03/composite/composite.go:29
FunctionTestAdapter
(t *testing.T)
Chapter03/adapter/adapter_test.go:5
FunctionTestAnimal_Swim
(t *testing.T)
Chapter03/composite/composite_test.go:19
FunctionTestAthlete_Train
(t *testing.T)
Chapter03/composite/composite_test.go:5
FunctionTestBarrier
(t *testing.T)
Chapter09/09_01.go:11
FunctionTestBuilderPattern
(t *testing.T)
Chapter02/builder_test.go:5
FunctionTestCalculate
(t *testing.T)
Chapter06/interpreter/interpreter_test.go:5
FunctionTestCarFactory
(t *testing.T)
Chapter02/abstract_factory/vehicle_factory_test.go:43
FunctionTestCareTaker_Add
(t *testing.T)
Chapter06/memento/memento_test.go:5
FunctionTestCareTaker_Memento
(t *testing.T)
Chapter06/memento/memento_test.go:24
FunctionTestClone
(t *testing.T)
Chapter02/prototype_test.go:5
FunctionTestCreateDefaultChain
(t *testing.T)
Chapter05/chain-of-responsability/chain_test.go:23
FunctionTestDivide
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:55
FunctionTestGetInstance
(t *testing.T)
Chapter02/singleton_test.go:5
FunctionTestGetPaymentMethodCash
(t *testing.T)
Chapter02/factory_test.go:8
FunctionTestGetPaymentMethodDebitCard
(t *testing.T)
Chapter02/factory_test.go:21
FunctionTestGetPaymentMethodNonExistent
(t *testing.T)
Chapter02/factory_test.go:33
FunctionTestLaunchPipeline
(t *testing.T)
Chapter09/09_07.go:5
FunctionTestMeat_AddIngredient
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:41
FunctionTestMotorbikeFactory
(t *testing.T)
Chapter02/abstract_factory/vehicle_factory_test.go:5
FunctionTestMultiply
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:38
FunctionTestMultiply
(t *testing.T)
Chapter01/testing/multiply/main_test.go:5
FunctionTestNormalPrinter_Print
(t *testing.T)
Chapter03/bridge/bridge_test.go:60
FunctionTestOnion_AddIngredient
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:21
FunctionTestOpenWeatherMap_responseParser
(t *testing.T)
Chapter04/facade/facade_test.go:69
FunctionTestOriginator_ExtractAndStoreState
(t *testing.T)
Chapter06/memento/memento_test.go:46
FunctionTestPacktPrinter_Print
(t *testing.T)
Chapter03/bridge/bridge_test.go:91
FunctionTestPizzaDecorator_AddIngredient
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:8
FunctionTestPizzaDecorator_FullStack
(t *testing.T)
Chapter04/decorator/pizza_decorator_test.go:61
FunctionTestPrintAPI1
(t *testing.T)
Chapter03/bridge/bridge_test.go:9
FunctionTestPrintAPI2
(t *testing.T)
Chapter03/bridge/bridge_test.go:33
FunctionTestSon_GetParentField
(t *testing.T)
Chapter03/composite/composite_test.go:51
FunctionTestStartInstance
(t *testing.T)
Chapter08/08_16.go:8
FunctionTestStringOrError_Execute
(t *testing.T)
Chapter09/09_04.go:9
FunctionTestSubject
(t *testing.T)
Chapter07/observer/observer_test.go:18
FunctionTestSubtract
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:21
FunctionTestSum
(t *testing.T)
Chapter01/libraries/arithmetic/arithmetic_test.go:5
FunctionTestSum
(t *testing.T)
Chapter01/testing/main_test.go:5
FunctionTestSwimmer_Swim
(t *testing.T)
Chapter03/composite/composite_test.go:10
FunctionTestSwimmer_Swim2
(t *testing.T)
Chapter03/composite/composite_test.go:28
FunctionTestTeamFlyweightFactory_GetTeam
(t *testing.T)
Chapter04/flyweight/flyweight_test.go:8
FunctionTestTemplate_ExecuteAlgorithm
(t *testing.T)
Chapter06/template/template_test.go:16
FunctionTestTree
(t *testing.T)
Chapter03/composite/composite_test.go:38
FunctionTest_HighVolume
(t *testing.T)
Chapter04/flyweight/flyweight_test.go:30
FunctionTest_Integration_OpenWeatherMap_GetWeatherByCityName
(t *testing.T)
Chapter04/facade/facade_test.go:18
FunctionTest_Integration_OpenWeatherMap_GetWeatherByGeographicalCoordinates
(t *testing.T)
Chapter04/facade/facade_test.go:41
FunctionTest_Overall
(t *testing.T)
Chapter07/visitor/visitor_test.go:14
FunctionTest_UserListProxy
(t *testing.T)
Chapter04/proxy/proxy_test.go:8
FunctionTryFunc
(d DoerFunc)
Chapter04/test.go:26
MethodVisit
(p ProductInfoRetriever)
Chapter07/visitor/visitor2/visitor.go:71
MethodVisit
(p ProductInfoRetriever)
Chapter07/visitor/visitor2/visitor.go:79
MethodVisitA
(m *MessageA)
Chapter07/visitor/visitor.go:57
MethodVisitA
(m *MessageA)
Chapter07/visitor/visitor.go:66
MethodVisitB
(m *MessageB)
Chapter07/visitor/visitor.go:60
MethodVisitB
(m *MessageB)
Chapter07/visitor/visitor.go:69
MethodWrite
(p []byte)
Chapter07/visitor/visitor_test.go:9
FunctioncaptureBarrierOutput
(endpoints ...string)
Chapter09/09_02.go:11
FunctioncompositionIsNotInheritance
()
Chapter04/test.go:73
MethodexecuteState
(*GameContext)
Chapter07/state/state.go:12
MethodexecuteState
(c *GameContext)
Chapter07/state/state.go:23
MethodexecuteState
(c *GameContext)
Chapter07/state/state.go:35
MethodexecuteState
(c *GameContext)
Chapter07/state/state.go:46
MethodexecuteState
(c *GameContext)
Chapter07/state/state_refactored/state.go:23
MethodexecuteState
(c *GameContext)
Chapter07/state/state_refactored/state.go:36
MethodexecuteState
(c *GameContext)
Chapter07/state/state_refactored/state.go:48
MethodexecuteState
(c *GameContext)
Chapter07/state/state_refactored/state.go:69
MethodexecuteState
(c *GameContext)
Chapter07/state/state_refactored/state.go:77
Methodfirst
()
Chapter06/template/simple_template.go:10
Functioninit
()
Chapter04/facade/facade_test.go:14
Functionmain
()
Chapter04/test.go:30
Functionmain
()
Chapter04/decorator/server/server_decorator.go:51
Functionmain
()
Chapter07/state/state.go:65
Functionmain
()
Chapter07/state/state_refactored/state.go:82
Functionmain
MAIN -------------------------------------------------------------------
Chapter07/visitor/visitor2/visitor.go:85
Functionmain
--------------------------------------------------------------------
Chapter06/memento/memento_command/memento_command.go:82
Functionmain
()
Chapter06/interpreter/oo_interpreter/interpreter.go:77
Functionmain
()
Chapter06/template/sort/sort_example.go:22
← previousnext →201–300 of 336, ranked by callers