MCPcopy Create free account

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

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

↓ 1 callersMethodPrintMessage
(msg string)
Chapter03/bridge/bridge.go:19
↓ 1 callersMethodPush
(m Memento)
Chapter06/memento/memento_command/memento_command.go:49
↓ 1 callersMethodRemoveObserver
(o Observer)
Chapter07/observer/observer.go:17
↓ 1 callersMethodSetSeats
()
Chapter02/builder.go:5
↓ 1 callersMethodSetStructure
()
Chapter02/builder.go:6
↓ 1 callersMethodSetWheels
()
Chapter02/builder.go:4
↓ 1 callersMethodTrain
()
Chapter03/composite/composite.go:5
↓ 1 callersFunctionTry
(d IDoer)
Chapter04/test.go:22
↓ 1 callersMethodVisitA
(*MessageA)
Chapter07/visitor/visitor.go:47
↓ 1 callersMethodVisitB
(*MessageB)
Chapter07/visitor/visitor.go:48
↓ 1 callersMethodaddUser
AddUser adds a new user to the end of the Users slice
Chapter04/proxy/proxy.go:30
↓ 1 callersMethodaddUserToStack
addUserToStack takes the user argument and adds it to the stack in place. If the stack is full it removes the first element on it before adding.
Chapter04/proxy/proxy.go:45
↓ 1 callersFunctionbarrier
(endpoints ...string)
Chapter09/09_03.go:12
↓ 1 callersFunctioncomposite
(m *MyObject)
Chapter04/test.go:77
↓ 1 callersFunctioncreateNew
()
Chapter10/Memory/main.go:44
↓ 1 callersMethodfirst
()
Chapter06/template/simple_template.go:19
↓ 1 callersMethodfirst
()
Chapter06/template/simple_template.go:35
↓ 1 callersFunctiongenerator
(max int)
Chapter09/09_08.go:5
↓ 1 callersFunctiongetMockData
()
Chapter04/facade/facade_test.go:62
↓ 1 callersFunctiongetOperationFunc
(o string)
Chapter06/interpreter/interpreter.go:15
↓ 1 callersFunctiongetTeamFactory
(team int)
Chapter04/flyweight/flyweight.go:40
↓ 1 callersFunctionhelloWorld
()
Chapter08/08_02.go:7
↓ 1 callersFunctionhelloWorld
()
Chapter08/08_01.go:7
↓ 1 callersFunctionhelloWorld
()
Chapter08/08_03.go:10
↓ 1 callersFunctionisOperator
(o string)
Chapter06/interpreter/interpreter.go:38
↓ 1 callersFunctionmakeRequest
(out chan<- barrierResp, url string)
Chapter09/09_03.go:43
↓ 1 callersFunctionoperatorFactory
(o string, left, right Interpreter)
Chapter06/interpreter/oo_interpreter/interpreter.go:41
↓ 1 callersFunctionpower
(in <-chan int)
Chapter09/09_08.go:19
↓ 1 callersFunctionsum
(in <-chan int)
Chapter09/09_08.go:32
↓ 1 callersMethodtest
()
Chapter04/test.go:152
↓ 1 callersFunctiontestSuperAdapter
()
Chapter04/test.go:142
↓ 1 callersMethodthird
()
Chapter06/template/simple_template.go:23
↓ 1 callersMethodthird
()
Chapter06/template/simple_template.go:39
↓ 1 callersFunctiontoUpperAsync
(word string, f func(string))
Chapter08/08_08.go:22
↓ 1 callersFunctiontoUpperSync
(word string, f func(string))
Chapter08/08_07.go:14
MethodAccept
(v Visitor)
Chapter07/visitor/visitor.go:24
MethodAccept
(Visitor)
Chapter07/visitor/visitor.go:52
MethodAccept
(v Visitor)
Chapter07/visitor/visitor2/visitor.go:31
MethodAccept
Accept overrides "Accept" method from Product and implements the Visitable interface
Chapter07/visitor/visitor2/visitor.go:61
MethodCounter2
(n uint64)
Chapter04/test.go:113
MethodDoSomething
()
Chapter04/test.go:17
MethodDraw
()
Chapter05/strategy/example2/shapes/image.go:17
MethodDraw
()
Chapter05/strategy/example2/shapes/text.go:9
MethodDraw
()
Chapter05/strategy/example1/main.go:20
MethodDraw
()
Chapter05/strategy/example1/main.go:29
MethodExecute
()
Chapter05/command/example1/command.go:16
MethodExecute
(f ExecuteStringFunc)
Chapter09/09_06.go:22
MethodExecute
(f ExecuteStringFunc)
Chapter09/09_05.go:18
MethodExecuteAlgorithm
(f func() string)
Chapter06/template/simple_template.go:43
FunctionFactory
(s string)
Chapter05/strategy/example2/shapes/factory.go:15
MethodFail
(f FailFunc)
Chapter09/09_05.go:14
MethodFindUser
FindUser will iterate over the list to try to find a user with the same name that the param or return an error if it can't find it
Chapter04/proxy/proxy.go:19
MethodGetByCityAndCountryCode
(city, countryCode string)
Chapter04/facade/facade.go:13
MethodGetByGeoCoordinates
(lat, lon float32)
Chapter04/facade/facade.go:12
MethodGetClone
(m int)
Chapter02/prototype.go:24
MethodGetDoors
()
Chapter02/abstract_factory/familiar_car.go:5
MethodGetDoors
()
Chapter02/abstract_factory/luxury_car.go:5
MethodGetDrivingSideInCountry
()
Chapter01/interfaces/main.go:11
MethodGetDrivingSideInCountry
()
Chapter01/interfaces/main.go:17
MethodGetInfo
()
Chapter02/prototype.go:52
MethodGetName
()
Chapter07/visitor/visitor2/visitor.go:35
MethodGetPrice
()
Chapter07/visitor/visitor2/visitor.go:27
MethodGetPrice
GetPrice overrides GetPrice method of Product type
Chapter07/visitor/visitor2/visitor.go:55
MethodGetPrice
()
Chapter02/prototype.go:74
MethodGetSeats
()
Chapter02/abstract_factory/sport_motorbike.go:8
MethodGetSeats
()
Chapter02/abstract_factory/familiar_car.go:11
MethodGetSeats
()
Chapter02/abstract_factory/cruise_motorbike.go:8
MethodGetSeats
()
Chapter02/abstract_factory/luxury_car.go:11
MethodGetType
()
Chapter02/abstract_factory/sport_motorbike.go:11
MethodGetType
()
Chapter02/abstract_factory/cruise_motorbike.go:11
MethodGetValue
()
Chapter06/memento/memento_command/memento_command.go:7
MethodGetValue
()
Chapter06/memento/memento_command/memento_command.go:13
MethodGetValue
()
Chapter06/memento/memento_command/memento_command.go:20
MethodGetVehicle
()
Chapter02/builder.go:7
MethodGetVehicle
(v int)
Chapter02/abstract_factory/motorbike_factory.go:15
MethodGetVehicle
(v int)
Chapter02/abstract_factory/car_factory.go:15
MethodGetWheels
()
Chapter02/abstract_factory/sport_motorbike.go:5
MethodGetWheels
()
Chapter02/abstract_factory/familiar_car.go:8
MethodGetWheels
()
Chapter02/abstract_factory/cruise_motorbike.go:5
MethodGetWheels
()
Chapter02/abstract_factory/luxury_car.go:8
MethodInfo
()
Chapter05/command/example3/chain_command.go:9
MethodInfo
()
Chapter05/command/example3/chain_command.go:20
MethodInfo
()
Chapter05/command/example2/command.go:16
MethodInfo
()
Chapter05/command/example2/command.go:22
MethodLen
()
Chapter06/template/sort/sort_example.go:10
MethodLess
(i, j int)
Chapter06/template/sort/sort_example.go:18
MethodMessage
()
Chapter06/template/simple_template.go:53
MethodMessage
()
Chapter06/template/template_test.go:12
MethodNext
(s string)
Chapter05/chain-of-responsability/chain_test.go:19
MethodNext
(string)
Chapter05/chain-of-responsability/chain.go:10
MethodNext
(s string)
Chapter05/chain-of-responsability/chain.go:29
MethodNext
(s string)
Chapter05/chain-of-responsability/chain.go:48
MethodNext
(s string)
Chapter05/chain-of-responsability/chain.go:63
MethodNotify
(m string)
Chapter07/observer/observer_test.go:13
MethodPay
(amount float32)
Chapter02/factory.go:38
MethodPay
(amount float32)
Chapter02/factory.go:42
MethodPay
(amount float32)
Chapter02/factory.go:48
MethodPrint
()
Chapter07/visitor/visitor.go:15
MethodPrint
()
Chapter03/bridge/bridge.go:40
MethodPrint
(s string)
Chapter03/adapter/adapter.go:15
← previousnext →101–200 of 336, ranked by callers