MCPcopy Index your code
hub / github.com/MedUnes/go-kata

github.com/MedUnes/go-kata @main sqlite

repository ↗ · DeepWiki ↗
29 symbols 54 edges 6 files 3 documented · 10%
README

Kata [ID]: [Title of the Challenge]

Target Idioms: [e.g. Concurrency Patterns, Interface Pollution, Error Wrapping] Difficulty: [🟢 Beginner / 🟡 Intermediate / 🔴 Advanced]

🧠 The "Why"

Briefly explain the mismatch seasoned devs would face here. Why would the "Java way" or "Python way" fail in Go for this specific problem?

🎯 The Scenario

[Describe a realistic production problem. Example: "You are building a CLI that parses 1GB logs..."]

🛠 The Challenge

Implement a solution that satisfies the following requirements.

1. Functional Requirements

  • [ ] [Requirement A]
  • [ ] [Requirement B]

2. The "Idiomatic" Constraints (Pass/Fail Criteria)

To pass this kata, you must use the following patterns: * [ ] Constraint 1: [e.g. Do not allocate new memory inside the loop.] * [ ] Constraint 2: [e.g. Use functional options for configuration.] * [ ] Constraint 3: [e.g. Return wrapped errors.]

🧪 Self-Correction (Test Yourself)

  • If you did X: [Explain why this is "un-idiomatic" or dangerous in Go]
  • Instead, ensure Y: [Explain the idiomatic fix]

📚 Resources

  • [Link to Go Blog or Spec]

Extension points exported contracts — how you extend this code

Option (FuncType)
(no doc)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go
Service (Interface)
(no doc)
01-context-cancellation-concurrency/01-concurrent-aggregator/profile/profile.go
Service (Interface)
(no doc)
01-context-cancellation-concurrency/01-concurrent-aggregator/order/order.go

Core symbols most depended-on inside this repo

Error
called by 2
04-errors-semantics/20-nil-interface-gotcha/myerror.go
WithLogger
called by 1
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go
WithTimeout
called by 1
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go
NewUserAggregator
called by 1
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go
Aggregate
called by 1
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go
Get
called by 1
01-context-cancellation-concurrency/01-concurrent-aggregator/profile/profile.go
GetAll
called by 1
01-context-cancellation-concurrency/01-concurrent-aggregator/order/order.go
WrapError
called by 1
04-errors-semantics/20-nil-interface-gotcha/myerror.go

Shape

Function 10
Struct 10
Method 6
Interface 2
FuncType 1

Languages

Go100%

Modules by API surface

01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go8 symbols
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go7 symbols
04-errors-semantics/20-nil-interface-gotcha/myerror.go5 symbols
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go3 symbols
01-context-cancellation-concurrency/01-concurrent-aggregator/profile/profile.go3 symbols
01-context-cancellation-concurrency/01-concurrent-aggregator/order/order.go3 symbols

Dependencies from manifests, versioned

github.com/pmezard/go-difflibv1.0.0 · 1×
golang.org/x/syncv0.19.0 · 1×
gopkg.in/yaml.v3v3.0.1 · 1×

For agents

$ claude mcp add go-kata \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact