MCPcopy Create free account

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

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

↓ 9 callersMethodAdd
(m memento)
Chapter06/memento/memento.go:33
↓ 8 callersMethodRead
()
Chapter06/interpreter/oo_interpreter/interpreter.go:14
↓ 6 callersMethodGetVehicle
(v int)
Chapter02/abstract_factory/vehicle_factory.go:9
↓ 5 callersMethodAddCommand
(c Command)
Chapter05/command/example1/command.go:32
↓ 5 callersFunctionCreateCommand
(s string)
Chapter05/command/example1/command.go:20
↓ 5 callersMethodFail
(f FailFunc)
Chapter09/09_06.go:17
↓ 5 callersMethodFindUser
FindUser will search for the specified name in the parameter in the cache list. If it finds it, it will return it. If not, it will search in the heavy
Chapter04/proxy/proxy.go:57
↓ 4 callersMethodAddOne
()
Chapter02/main.go:17
↓ 4 callersFunctionGetInstance
()
Chapter02/main.go:9
↓ 4 callersMethodGetNumberOfObjects
()
Chapter04/flyweight/flyweight.go:76
↓ 4 callersMethodGetTeam
(teamName int)
Chapter04/flyweight/flyweight.go:65
↓ 4 callersMethodGetWheels
()
Chapter02/abstract_factory/vehicle.go:4
↓ 4 callersMethodNext
(Command)
Chapter05/command/example3/chain_command.go:13
↓ 4 callersMethodWrite
(p []byte)
Chapter05/chain-of-responsability/chain_test.go:13
↓ 3 callersMethodAddIngredient
()
Chapter04/decorator/pizza_decorator.go:39
↓ 3 callersMethodAddObserver
(o Observer)
Chapter07/observer/observer.go:13
↓ 3 callersMethodConstruct
()
Chapter02/builder.go:15
↓ 3 callersMethodCount
(n uint64)
Chapter04/test.go:124
↓ 3 callersMethodDraw
()
Chapter05/strategy/example2/output_strategy.go:6
↓ 3 callersMethodDraw
()
Chapter05/strategy/example1/main.go:15
↓ 3 callersFunctionGetPaymentMethod
CreatePaymentMethod returns a pointer to a PaymentMethod object or an error if the method is not registered. We used "new" operator to return the poin
Chapter02/factory.go:24
↓ 3 callersFunctionGetVehicleFactory
(f int)
Chapter02/abstract_factory/vehicle_factory.go:17
↓ 3 callersMethodInfo
()
Chapter05/command/example2/command.go:9
↓ 3 callersMethodNewMemento
()
Chapter06/memento/memento.go:19
↓ 3 callersMethodNext
(s string)
Chapter05/chain-of-responsability/chain.go:17
↓ 3 callersMethodPop
()
Chapter06/interpreter/interpreter.go:52
↓ 3 callersMethodPop
()
Chapter06/interpreter/oo_interpreter/interpreter.go:65
↓ 3 callersMethodSetBuilder
(b BuildProcess)
Chapter02/builder.go:19
↓ 3 callersMethodWrite
(p []byte)
Chapter03/bridge/bridge_test.go:22
↓ 3 callersFunctionexpectedOrError
(res string, expected string, t *testing.T)
Chapter06/template/template_test.go:49
↓ 2 callersMethodAccept
(v Visitor)
Chapter07/visitor/visitor.go:42
↓ 2 callersMethodAccept
(Visitor)
Chapter07/visitor/visitor2/visitor.go:17
↓ 2 callersMethodAddIngredient
()
Chapter04/decorator/pizza_decorator.go:9
↓ 2 callersMethodAddIngredient
()
Chapter04/decorator/pizza_decorator.go:24
↓ 2 callersFunctionCalculate
(o string)
Chapter06/interpreter/interpreter.go:64
↓ 2 callersFunctionDivide
Divide will take two arguments and return its division as far as the second argument isn't zero that will return an error
Chapter01/libraries/arithmetic/arithmetic.go:47
↓ 2 callersMethodExecuteAlgorithm
(MessageRetriever)
Chapter06/template/simple_template.go:12
↓ 2 callersMethodFindUser
(id string)
Chapter04/proxy/proxy.go:10
↓ 2 callersMethodGetClone
(m int)
Chapter02/prototype.go:9
↓ 2 callersMethodGetCount
()
Chapter02/main.go:22
↓ 2 callersMethodGetDoors
()
Chapter02/abstract_factory/car.go:4
↓ 2 callersMethodGetDrivingSideInCountry
()
Chapter01/interfaces/main.go:6
↓ 2 callersMethodGetInfo
()
Chapter02/prototype.go:41
↓ 2 callersMethodGetSeats
()
Chapter02/abstract_factory/vehicle.go:5
↓ 2 callersMethodGetSideToDrive
(country SideInCountry)
Chapter01/interfaces/main.go:23
↓ 2 callersMethodGetType
()
Chapter02/abstract_factory/motorbike.go:4
↓ 2 callersMethodMemento
(i int)
Chapter06/memento/memento.go:37
↓ 2 callersFunctionMultiply
Multiply will take as many arguments as you want and will return the multiplication of them
Chapter01/libraries/arithmetic/arithmetic.go:32
↓ 2 callersFunctionNewTeamFactory
()
Chapter04/flyweight/flyweight.go:55
↓ 2 callersMethodPay
(amount float32)
Chapter02/factory.go:11
↓ 2 callersMethodPrint
()
Chapter07/visitor/visitor.go:33
↓ 2 callersMethodPrint
()
Chapter03/bridge/bridge.go:50
↓ 2 callersMethodPrint
()
Chapter03/bridge/bridge.go:62
↓ 2 callersMethodPrintMessage
(string)
Chapter03/bridge/bridge.go:12
↓ 2 callersMethodPrintMessage
(msg string)
Chapter03/bridge/bridge.go:28
↓ 2 callersMethodPrintStored
()
Chapter03/adapter/adapter.go:32
↓ 2 callersMethodPush
(s int)
Chapter06/interpreter/interpreter.go:48
↓ 2 callersMethodPush
(s Interpreter)
Chapter06/interpreter/oo_interpreter/interpreter.go:61
↓ 2 callersMethodRestoreSettings
()
Chapter06/memento/memento_command/memento_command.go:75
↓ 2 callersMethodSaveSettings
(s Command)
Chapter06/memento/memento_command/memento_command.go:70
↓ 2 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
Chapter04/decorator/server/server_decorator.go:13
↓ 2 callersMethodSetWriter
(io.Writer)
Chapter05/strategy/example2/output_strategy.go:8
↓ 2 callersFunctionSubtract
Subtract will take as many arguments as you pass to it and return the subtraction of them
Chapter01/libraries/arithmetic/arithmetic.go:17
↓ 2 callersFunctionSum
Sum will take as many arguments as you pass to it and return the sum of all of them
Chapter01/libraries/arithmetic/arithmetic.go:7
↓ 2 callersMethodSwim
()
Chapter03/composite/composite.go:24
↓ 2 callersMethodTrain
()
Chapter03/composite/composite.go:21
↓ 2 callersMethodVisit
(ProductInfoRetriever)
Chapter07/visitor/visitor2/visitor.go:13
↓ 2 callersFunctionassertAndPrint
(c Command)
Chapter06/memento/memento_command/memento_command.go:92
↓ 2 callersMethoddoRequest
(uri string)
Chapter04/facade/facade.go:96
↓ 2 callersMethodexecuteState
(*GameContext)
Chapter07/state/state_refactored/state.go:11
↓ 2 callersMethodresponseParser
(body io.Reader)
Chapter04/facade/facade.go:86
↓ 2 callersFunctionsum
(a, b int)
Chapter01/testing/main.go:18
↓ 2 callersFunctiontoUpperAsync
(word string, f func(string))
Chapter08/08_09.go:24
↓ 1 callersMethodAddIngredient
()
Chapter04/decorator/pizza_decorator.go:16
↓ 1 callersMethodDoSomething
()
Chapter04/test.go:12
↓ 1 callersMethodEat
()
Chapter03/composite/composite.go:42
↓ 1 callersMethodExecute
()
Chapter05/command/example1/command.go:9
↓ 1 callersMethodExecuteAlgorithm
(m MessageRetriever)
Chapter06/template/simple_template.go:27
↓ 1 callersMethodExtractAndStoreCommand
(m Memento)
Chapter06/memento/memento_command/memento_command.go:39
↓ 1 callersMethodExtractAndStoreState
(m memento)
Chapter06/memento/memento.go:23
↓ 1 callersMethodGetByCityAndCountryCode
GetByCityAndCountryCode returns the current weather data by passing a city name and an ISO country code. It returns weather information or a detailed
Chapter04/facade/facade.go:82
↓ 1 callersMethodGetByGeoCoordinates
GetByGeoCoordinates returns the current weather data by passing a geographical coordinates (latitude and longitude) in decimal notation. It returns we
Chapter04/facade/facade.go:74
↓ 1 callersMethodGetFullName
()
Chapter01/structs/main.go:12
↓ 1 callersMethodGetName
()
Chapter07/visitor/visitor2/visitor.go:9
↓ 1 callersFunctionGetParentField
(p Parent)
Chapter03/composite/composite.go:69
↓ 1 callersMethodGetPrice
()
Chapter07/visitor/visitor2/visitor.go:8
↓ 1 callersFunctionGetShirtsCloner
()
Chapter02/prototype.go:18
↓ 1 callersMethodGetSideToRide
(country SideInCountry)
Chapter01/interfaces/main.go:29
↓ 1 callersMethodGetVehicle
()
Chapter02/builder.go:50
↓ 1 callersMethodGetVehicle
()
Chapter02/builder.go:74
↓ 1 callersMethodGetVehicle
()
Chapter02/builder.go:98
↓ 1 callersMethodMessage
()
Chapter06/template/simple_template.go:6
↓ 1 callersFunctionMessageRetrieverAdapter
(f func() string)
Chapter06/template/simple_template.go:61
↓ 1 callersFunctionMultiply
(a, b int)
Chapter01/testing/multiply/main.go:7
↓ 1 callersMethodNewMemento
()
Chapter06/memento/memento_command/memento_command.go:35
↓ 1 callersMethodNext
(c Command)
Chapter05/command/example3/chain_command.go:28
↓ 1 callersMethodNotify
(string)
Chapter07/observer/observer.go:6
↓ 1 callersMethodNotifyObservers
(m string)
Chapter07/observer/observer.go:30
↓ 1 callersMethodPop
()
Chapter06/memento/memento_command/memento_command.go:53
↓ 1 callersMethodPrint
(s string)
Chapter03/adapter/adapter.go:8
next →1–100 of 336, ranked by callers