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
↓ 1 callers
Method
PrintMessage
(msg string)
Chapter03/bridge/bridge.go:19
↓ 1 callers
Method
Push
(m Memento)
Chapter06/memento/memento_command/memento_command.go:49
↓ 1 callers
Method
RemoveObserver
(o Observer)
Chapter07/observer/observer.go:17
↓ 1 callers
Method
SetSeats
()
Chapter02/builder.go:5
↓ 1 callers
Method
SetStructure
()
Chapter02/builder.go:6
↓ 1 callers
Method
SetWheels
()
Chapter02/builder.go:4
↓ 1 callers
Method
Train
()
Chapter03/composite/composite.go:5
↓ 1 callers
Function
Try
(d IDoer)
Chapter04/test.go:22
↓ 1 callers
Method
VisitA
(*MessageA)
Chapter07/visitor/visitor.go:47
↓ 1 callers
Method
VisitB
(*MessageB)
Chapter07/visitor/visitor.go:48
↓ 1 callers
Method
addUser
AddUser adds a new user to the end of the Users slice
Chapter04/proxy/proxy.go:30
↓ 1 callers
Method
addUserToStack
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 callers
Function
barrier
(endpoints ...string)
Chapter09/09_03.go:12
↓ 1 callers
Function
composite
(m *MyObject)
Chapter04/test.go:77
↓ 1 callers
Function
createNew
()
Chapter10/Memory/main.go:44
↓ 1 callers
Method
first
()
Chapter06/template/simple_template.go:19
↓ 1 callers
Method
first
()
Chapter06/template/simple_template.go:35
↓ 1 callers
Function
generator
(max int)
Chapter09/09_08.go:5
↓ 1 callers
Function
getMockData
()
Chapter04/facade/facade_test.go:62
↓ 1 callers
Function
getOperationFunc
(o string)
Chapter06/interpreter/interpreter.go:15
↓ 1 callers
Function
getTeamFactory
(team int)
Chapter04/flyweight/flyweight.go:40
↓ 1 callers
Function
helloWorld
()
Chapter08/08_02.go:7
↓ 1 callers
Function
helloWorld
()
Chapter08/08_01.go:7
↓ 1 callers
Function
helloWorld
()
Chapter08/08_03.go:10
↓ 1 callers
Function
isOperator
(o string)
Chapter06/interpreter/interpreter.go:38
↓ 1 callers
Function
makeRequest
(out chan<- barrierResp, url string)
Chapter09/09_03.go:43
↓ 1 callers
Function
operatorFactory
(o string, left, right Interpreter)
Chapter06/interpreter/oo_interpreter/interpreter.go:41
↓ 1 callers
Function
power
(in <-chan int)
Chapter09/09_08.go:19
↓ 1 callers
Function
sum
(in <-chan int)
Chapter09/09_08.go:32
↓ 1 callers
Method
test
()
Chapter04/test.go:152
↓ 1 callers
Function
testSuperAdapter
()
Chapter04/test.go:142
↓ 1 callers
Method
third
()
Chapter06/template/simple_template.go:23
↓ 1 callers
Method
third
()
Chapter06/template/simple_template.go:39
↓ 1 callers
Function
toUpperAsync
(word string, f func(string))
Chapter08/08_08.go:22
↓ 1 callers
Function
toUpperSync
(word string, f func(string))
Chapter08/08_07.go:14
Method
Accept
(v Visitor)
Chapter07/visitor/visitor.go:24
Method
Accept
(Visitor)
Chapter07/visitor/visitor.go:52
Method
Accept
(v Visitor)
Chapter07/visitor/visitor2/visitor.go:31
Method
Accept
Accept overrides "Accept" method from Product and implements the Visitable interface
Chapter07/visitor/visitor2/visitor.go:61
Method
Counter2
(n uint64)
Chapter04/test.go:113
Method
DoSomething
()
Chapter04/test.go:17
Method
Draw
()
Chapter05/strategy/example2/shapes/image.go:17
Method
Draw
()
Chapter05/strategy/example2/shapes/text.go:9
Method
Draw
()
Chapter05/strategy/example1/main.go:20
Method
Draw
()
Chapter05/strategy/example1/main.go:29
Method
Execute
()
Chapter05/command/example1/command.go:16
Method
Execute
(f ExecuteStringFunc)
Chapter09/09_06.go:22
Method
Execute
(f ExecuteStringFunc)
Chapter09/09_05.go:18
Method
ExecuteAlgorithm
(f func() string)
Chapter06/template/simple_template.go:43
Function
Factory
(s string)
Chapter05/strategy/example2/shapes/factory.go:15
Method
Fail
(f FailFunc)
Chapter09/09_05.go:14
Method
FindUser
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
Method
GetByCityAndCountryCode
(city, countryCode string)
Chapter04/facade/facade.go:13
Method
GetByGeoCoordinates
(lat, lon float32)
Chapter04/facade/facade.go:12
Method
GetClone
(m int)
Chapter02/prototype.go:24
Method
GetDoors
()
Chapter02/abstract_factory/familiar_car.go:5
Method
GetDoors
()
Chapter02/abstract_factory/luxury_car.go:5
Method
GetDrivingSideInCountry
()
Chapter01/interfaces/main.go:11
Method
GetDrivingSideInCountry
()
Chapter01/interfaces/main.go:17
Method
GetInfo
()
Chapter02/prototype.go:52
Method
GetName
()
Chapter07/visitor/visitor2/visitor.go:35
Method
GetPrice
()
Chapter07/visitor/visitor2/visitor.go:27
Method
GetPrice
GetPrice overrides GetPrice method of Product type
Chapter07/visitor/visitor2/visitor.go:55
Method
GetPrice
()
Chapter02/prototype.go:74
Method
GetSeats
()
Chapter02/abstract_factory/sport_motorbike.go:8
Method
GetSeats
()
Chapter02/abstract_factory/familiar_car.go:11
Method
GetSeats
()
Chapter02/abstract_factory/cruise_motorbike.go:8
Method
GetSeats
()
Chapter02/abstract_factory/luxury_car.go:11
Method
GetType
()
Chapter02/abstract_factory/sport_motorbike.go:11
Method
GetType
()
Chapter02/abstract_factory/cruise_motorbike.go:11
Method
GetValue
()
Chapter06/memento/memento_command/memento_command.go:7
Method
GetValue
()
Chapter06/memento/memento_command/memento_command.go:13
Method
GetValue
()
Chapter06/memento/memento_command/memento_command.go:20
Method
GetVehicle
()
Chapter02/builder.go:7
Method
GetVehicle
(v int)
Chapter02/abstract_factory/motorbike_factory.go:15
Method
GetVehicle
(v int)
Chapter02/abstract_factory/car_factory.go:15
Method
GetWheels
()
Chapter02/abstract_factory/sport_motorbike.go:5
Method
GetWheels
()
Chapter02/abstract_factory/familiar_car.go:8
Method
GetWheels
()
Chapter02/abstract_factory/cruise_motorbike.go:5
Method
GetWheels
()
Chapter02/abstract_factory/luxury_car.go:8
Method
Info
()
Chapter05/command/example3/chain_command.go:9
Method
Info
()
Chapter05/command/example3/chain_command.go:20
Method
Info
()
Chapter05/command/example2/command.go:16
Method
Info
()
Chapter05/command/example2/command.go:22
Method
Len
()
Chapter06/template/sort/sort_example.go:10
Method
Less
(i, j int)
Chapter06/template/sort/sort_example.go:18
Method
Message
()
Chapter06/template/simple_template.go:53
Method
Message
()
Chapter06/template/template_test.go:12
Method
Next
(s string)
Chapter05/chain-of-responsability/chain_test.go:19
Method
Next
(string)
Chapter05/chain-of-responsability/chain.go:10
Method
Next
(s string)
Chapter05/chain-of-responsability/chain.go:29
Method
Next
(s string)
Chapter05/chain-of-responsability/chain.go:48
Method
Next
(s string)
Chapter05/chain-of-responsability/chain.go:63
Method
Notify
(m string)
Chapter07/observer/observer_test.go:13
Method
Pay
(amount float32)
Chapter02/factory.go:38
Method
Pay
(amount float32)
Chapter02/factory.go:42
Method
Pay
(amount float32)
Chapter02/factory.go:48
Method
Print
()
Chapter07/visitor/visitor.go:15
Method
Print
()
Chapter03/bridge/bridge.go:40
Method
Print
(s string)
Chapter03/adapter/adapter.go:15
← previous
next →
101–200 of 336, ranked by callers