MCPcopy Index your code
hub / github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition

github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,064 symbols 2,480 edges 438 files 395 documented · 37%
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

GreeterService (Interface)
======================== GreeterService Interface ======================== [6 implementers]
chapter7/twirp/rpc/greeter/greeter.twirp.go
GetSetter (Interface)
GetSetter implements get a set of a key value pair [6 implementers]
chapter9/mockgen/interface.go
DB (Interface)
DB is an interface that is satisfied by an sql.DB or an sql.Transaction [4 implementers]
chapter6/dbinterface/transaction.go
DoStuffer (Interface)
DoStuffer is a simple interface [1 implementers]
chapter9/mocking/mock.go
TransportFunc (FuncType)
TransportFunc implements the RountTripper interface
chapter7/decorator/decorator.go
Storage (Interface)
Storage is our generic storage interface
chapter7/oauthstore/storage.go
Client (Interface)
Client exposes api methods we care about
chapter11/discovery/client.go
Storage (Interface)
Storage Interface Supports Get and Put of a single value
chapter8/controllers/storage.go

Core symbols most depended-on inside this repo

Close
called by 38
chapter13/firebase/client.go
Error
called by 32
chapter10/waitgroup/tasks.go
Get
called by 19
chapter13/firebase/client.go
clientError
called by 18
chapter7/twirp/rpc/greeter/greeter.twirp.go
Exec
called by 18
chapter6/dbinterface/transaction.go
writeError
called by 17
chapter7/twirp/rpc/greeter/greeter.twirp.go
String
called by 14
chapter5/dns/dns.go
Add
called by 12
chapter14/bench/lock.go

Shape

Function 572
Struct 238
Method 223
Interface 16
TypeAlias 11
FuncType 4

Languages

Go100%

Modules by API surface

chapter7/twirp/rpc/greeter/greeter.twirp.go46 symbols
chapter8/grpcjson/keyvalue/keyvalue.pb.go34 symbols
chapter6/dbinterface/mocks_test.go30 symbols
chapter7/twirp/rpc/greeter/greeter.pb.go24 symbols
chapter7/grpc/greeter/greeter.pb.go23 symbols
chapter12/asynckafka/producer/mocks_test.go14 symbols
chapter9/mockgen/internal/mocks.go8 symbols
chapter6/dbinterface/transaction.go8 symbols
chapter14/bench/lock_test.go7 symbols
chapter14/bench/atomic_test.go7 symbols
chapter13/firebase/client.go7 symbols
chapter8/controllers/storage.go6 symbols

Datastores touched

(mongodb)Database · 1 repos
gocookbookDatabase · 1 repos

For agents

$ claude mcp add Go-Programming-Cookbook-Second-Edition \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact