MCPcopy Index your code
hub / github.com/PacktPublishing/Go-Design-Patterns

github.com/PacktPublishing/Go-Design-Patterns @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
505 symbols 887 edges 102 files 50 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

PrinterAbstraction (Interface)
----------------------------------------------------------------- [5 implementers]
Chapter03/bridge/bridge.go
LegacyPrinter (Interface)
------------------------------------------------------------------------ [5 implementers]
Chapter03/adapter/adapter.go
GameState (Interface)
(no doc) [8 implementers]
Chapter07/state/state.go
ChainLogger (Interface)
(no doc) [6 implementers]
Chapter05/chain-of-responsability/chain.go
ChainLogger (Interface)
(no doc) [6 implementers]
Chapter05/command/example3/chain_command.go
PaymentMethod (Interface)
PaymentMethod defines a way of paying in the shop. This factory method returns objects that implements this interface [3 …
Chapter02/factory.go
VehicleFactory (Interface)
(no doc) [5 implementers]
Chapter02/abstract_factory/vehicle_factory.go
Visitable (Interface)
(no doc) [4 implementers]
Chapter07/visitor/visitor.go

Core symbols most depended-on inside this repo

Add
called by 9
Chapter06/memento/memento.go
Read
called by 8
Chapter06/interpreter/oo_interpreter/interpreter.go
GetVehicle
called by 6
Chapter02/abstract_factory/vehicle_factory.go
FindUser
called by 5
Chapter04/proxy/proxy.go
CreateCommand
called by 5
Chapter05/command/example1/command.go
AddCommand
called by 5
Chapter05/command/example1/command.go
Fail
called by 5
Chapter09/09_06.go
GetTeam
called by 4
Chapter04/flyweight/flyweight.go

Shape

Method 204
Function 132
Struct 114
Interface 38
TypeAlias 10
FuncType 7

Languages

Go100%

Modules by API surface

Chapter02/builder.go24 symbols
Chapter04/test.go22 symbols
Chapter07/visitor/visitor2/visitor.go21 symbols
Chapter06/memento/memento_command/memento_command.go18 symbols
Chapter03/composite/composite.go18 symbols
Chapter07/visitor/visitor.go17 symbols
Chapter06/template/simple_template.go17 symbols
Chapter07/state/state_refactored/state.go14 symbols
Chapter06/interpreter/oo_interpreter/interpreter.go13 symbols
Chapter03/bridge/bridge.go12 symbols
Chapter02/prototype.go11 symbols
Chapter01/interfaces/main.go11 symbols

For agents

$ claude mcp add Go-Design-Patterns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact