Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Go-Design-Patterns
/ types & classes
Types & classes
169 in github.com/PacktPublishing/Go-Design-Patterns
⨍
Functions
336
◇
Types & classes
169
↓ 2 callers
TypeAlias
value
Chapter06/interpreter/oo_interpreter/interpreter.go:17
↓ 1 callers
TypeAlias
Mute
Chapter06/memento/memento_command/memento_command.go:11
↓ 1 callers
TypeAlias
Volume
Chapter06/memento/memento_command/memento_command.go:5
Struct
Animal
--------------------------------------------------------------------------
Chapter03/composite/composite.go:40
Struct
AnonymousTemplate
-------------------------------------------------------------------------
Chapter06/template/simple_template.go:33
Struct
AskState
Chapter07/state/state.go:45
Struct
AskState
Chapter07/state/state_refactored/state.go:46
Struct
Athlete
Chapter03/composite/composite.go:3
Struct
BikeBuilder
A Builder of type motorbike
Chapter02/builder.go:55
Interface
BuildProcess
Chapter02/builder.go:3
Struct
BusBuilder
A Builder of type motorbike
Chapter02/builder.go:79
Interface
Car
Chapter02/abstract_factory/car.go:3
Struct
CarBuilder
A Builder of type car
Chapter02/builder.go:31
Struct
CarFactory
Chapter02/abstract_factory/car_factory.go:13
Struct
CashPM
Chapter02/factory.go:35
Interface
ChainLogger
Chapter05/chain-of-responsability/chain.go:9
Interface
ChainLogger
Chapter05/command/example3/chain_command.go:12
Struct
ClosureChain
Chapter05/chain-of-responsability/chain.go:58
Interface
Command
--------------------------------------------------------------------
Chapter06/memento/memento_command/memento_command.go:19
Interface
Command
Chapter05/command/example3/chain_command.go:8
Interface
Command
Chapter05/command/example2/command.go:8
Interface
Command
Chapter05/command/example1/command.go:8
Struct
CommandQueue
Chapter05/command/example1/command.go:28
Struct
CompositeSwimmerA
Chapter03/composite/composite.go:13
Struct
CompositeSwimmerB
Chapter03/composite/composite.go:33
Struct
ConsoleOutput
Chapter05/command/example1/command.go:12
Struct
Counter
--------------------------------------------------
Chapter04/test.go:109
Struct
Counter
Chapter08/08_10.go:8
Struct
CountryEngland
Chapter01/interfaces/main.go:15
Struct
CountrySpain
Chapter01/interfaces/main.go:9
Struct
CruiseMotorbike
Chapter02/abstract_factory/cruise_motorbike.go:3
Struct
CurrentWeatherData
Chapter04/facade/facade.go:16
Interface
CurrentWeatherDataRetriever
Chapter04/facade/facade.go:11
Struct
Cyclist
Chapter01/interfaces/main.go:27
Struct
DebitCardPM
Chapter02/factory.go:36
FuncType
DoerFunc
func()
Chapter04/test.go:15
Struct
DrawOutput
Chapter05/strategy/example2/output_strategy.go:11
Struct
Driver
Chapter01/interfaces/main.go:21
FuncType
ExecuteStringFunc
func() (string, error)
Chapter09/09_06.go:5
FuncType
ExecuteStringFunc
func() (string, error)
Chapter09/09_05.go:5
FuncType
FailFunc
func(error)
Chapter09/09_06.go:4
FuncType
FailFunc
func(error)
Chapter09/09_05.go:4
Struct
FamiliarCar
Chapter02/abstract_factory/familiar_car.go:3
Struct
FinishState
Chapter07/state/state.go:34
Struct
FinishState
Chapter07/state/state_refactored/state.go:34
Struct
FirstLogger
Chapter05/chain-of-responsability/chain.go:13
Struct
Fridge
Chapter07/visitor/visitor2/visitor.go:50
Struct
GameContext
Chapter07/state/state.go:15
Struct
GameContext
Chapter07/state/state_refactored/state.go:14
Interface
GameState
Chapter07/state/state.go:11
Interface
GameState
Chapter07/state/state_refactored/state.go:10
Struct
HelloMessage
Chapter05/command/example2/command.go:20
Struct
HistoricalData
Chapter04/flyweight/flyweight.go:17
Interface
IDoer
Chapter04/test.go:11
TypeAlias
Image
Chapter10/Memory/main.go:17
Struct
ImageSquare
Chapter05/strategy/example2/shapes/image.go:13
Struct
ImageSquare
Chapter05/strategy/example1/main.go:25
Interface
IngredientAdder
Chapter04/decorator/pizza_decorator.go:8
Interface
Interpreter
Chapter06/interpreter/oo_interpreter/interpreter.go:13
Interface
ItemInfoGetter
Chapter02/prototype.go:40
Interface
LegacyPrinter
------------------------------------------------------------------------
Chapter03/adapter/adapter.go:7
Struct
Logger
Chapter05/command/example3/chain_command.go:24
Struct
LoggerMiddleware
Chapter04/decorator/server/server_decorator.go:17
Struct
LoseState
Chapter07/state/state_refactored/state.go:75
Struct
LuxuryCar
Chapter02/abstract_factory/luxury_car.go:3
Struct
ManufacturingDirector
Director
Chapter02/builder.go:11
Struct
Match
Chapter04/flyweight/flyweight.go:30
Struct
MaybeString
Chapter09/09_06.go:7
Struct
MaybeString
Chapter09/09_05.go:7
Struct
Meat
Chapter04/decorator/pizza_decorator.go:20
Struct
Memento
--------------------------------------------------------------------
Chapter06/memento/memento_command/memento_command.go:25
Struct
MementoFacade
--------------------------------------------------------------------
Chapter06/memento/memento_command/memento_command.go:65
Struct
MessageA
Chapter07/visitor/visitor.go:10
Struct
MessageB
Chapter07/visitor/visitor.go:28
Interface
MessageRetriever
Chapter06/template/simple_template.go:5
Struct
MessageVisitor
Chapter07/visitor/visitor.go:55
Struct
MockReader
Chapter04/test.go:135
Interface
Motorbike
Chapter02/abstract_factory/motorbike.go:3
Struct
MotorbikeFactory
Chapter02/abstract_factory/motorbike_factory.go:13
Struct
MsgFieldVisitorPrinter
Chapter07/visitor/visitor.go:64
Struct
MyLegacyPrinter
------------------------------------------------------------------------
Chapter03/adapter/adapter.go:13
TypeAlias
MyList
Chapter06/template/sort/sort_example.go:8
Struct
MyObject
Chapter04/test.go:68
Struct
MyServer
Chapter04/decorator/server/server_decorator.go:11
Struct
NamePrinter
Chapter07/visitor/visitor2/visitor.go:75
Struct
NewDebitCardPM
Chapter02/factory.go:46
Interface
NewPrinter
------------------------------------------------------------------------
Chapter03/adapter/adapter.go:23
Struct
NormalPrinter
-----------------------------------------------------------------
Chapter03/bridge/bridge.go:45
Struct
ObjectInherits
Chapter04/test.go:69
Interface
Observer
Chapter07/observer/observer.go:5
Struct
Onion
Chapter04/decorator/pizza_decorator.go:35
Interface
Output
Chapter05/strategy/example2/output_strategy.go:5
Interface
OutputStrategy
Chapter05/strategy/example1/main.go:14
Struct
PacktPrinter
-----------------------------------------------------------------
Chapter03/bridge/bridge.go:57
Struct
Parent
--------------------------------------------------------------------------
Chapter03/composite/composite.go:61
Struct
Pasta
Chapter07/visitor/visitor2/visitor.go:45
Interface
PaymentMethod
PaymentMethod defines a way of paying in the shop. This factory method returns objects that implements this interface
Chapter02/factory.go:10
Struct
Person
Chapter01/structs/main.go:5
Struct
PizzaDecorator
Chapter04/decorator/pizza_decorator.go:12
Struct
Player
Chapter04/flyweight/flyweight.go:10
next →
1–100 of 169, ranked by callers