# quii/learn-go-with-tests architecture

> Architecture diagram of the GitHub repository quii/learn-go-with-tests, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/quii/learn-go-with-tests
- Repository: https://github.com/quii/learn-go-with-tests

## Overview

Learn Go with Tests is an educational repository, not a single runtime application. Its principal workflow is a learner following a topic from the README, studying and adapting a small Go example, and applying those ideas in the progressively extended poker-server chapters. The tree also preserves independent fundamentals and focused examples for concurrency, reflection, file processing, generics, and SVG generation. The graph represents those curriculum branches and sampled runtime behavior; many individual lesson implementations were not excerpted, so their internal relationships are left unspecified.

Main entry points: [`README.md`](https://github.com/quii/learn-go-with-tests/blob/main/README.md) (Learning guide), [`websockets/v2/server.go`](https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/server.go) (WebSocket games), [`mocking/v6/main.go`](https://github.com/quii/learn-go-with-tests/blob/main/mocking/v6/main.go) (Testing techniques), [`hello-world/v1/hello.go`](https://github.com/quii/learn-go-with-tests/blob/main/hello-world/v1/hello.go) (Language basics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Go fundamentals"]
  node_language["Language basics<br/>[hello.go]"]
  node_collections["Collections<br/>[sum.go]"]
  node_data_types["Types and maps"]
  node_dependency_injection["Dependency injection<br/>[di.go]"]
end

subgraph group_specialized["Focused topics"]
  node_concurrency["Concurrency patterns<br/>[check_websites.go]"]
  node_context["Cancellation<br/>[context.go]"]
  node_reflection["Reflection<br/>[reflection.go]"]
  node_file_processing["File processing<br/>[blogposts.go]"]
  node_svg_clock["SVG clock<br/>[main.go]"]
  node_generic_collections["Generic collections<br/>[stack.go]"]
end

subgraph group_application["Poker application"]
  node_http_server["HTTP endpoints<br/>[server.go]"]
  node_json_api["JSON API<br/>[server.go]"]
  node_persistence[("Disk persistence")]
  node_cli["Command line<br/>[CLI.go]"]
  node_timed_games["Timed games<br/>[game.go]"]
  node_websocket_server["WebSocket games<br/>[server.go]"]
  node_game_logic["Poker game logic<br/>[texas_holdem.go]"]
  node_player_store[("Player records")]
end

subgraph group_testing["Testing practice"]
  node_testing_practice["Testing techniques<br/>[main.go]"]
  node_acceptance_testing["Acceptance testing<br/>[testing.go]"]
end

node_learner(("Learner"))
node_curriculum["Learning guide<br/>[README.md]"]

node_learner -->|"starts with"| node_curriculum
node_curriculum -->|"introduces"| node_language
node_curriculum -->|"covers"| node_collections
node_curriculum -->|"covers"| node_data_types
node_curriculum -->|"covers"| node_dependency_injection
node_curriculum -->|"covers"| node_concurrency
node_curriculum -->|"covers"| node_context
node_curriculum -->|"covers"| node_reflection
node_curriculum -->|"covers"| node_file_processing
node_curriculum -->|"covers"| node_svg_clock
node_curriculum -->|"covers"| node_generic_collections
node_curriculum -->|"builds toward"| node_http_server
node_curriculum -->|"builds toward"| node_json_api
node_curriculum -->|"builds toward"| node_persistence
node_curriculum -->|"builds toward"| node_cli
node_curriculum -->|"extends with"| node_timed_games
node_curriculum -->|"extends with"| node_websocket_server
node_curriculum -->|"covers"| node_testing_practice
node_curriculum -->|"covers"| node_acceptance_testing
node_websocket_server -->|"reads and writes"| node_player_store
node_websocket_server -->|"dispatches game"| node_game_logic
node_learner -->|"practices with"| node_testing_practice

click node_curriculum "https://github.com/quii/learn-go-with-tests/blob/main/README.md"
click node_language "https://github.com/quii/learn-go-with-tests/blob/main/hello-world/v1/hello.go"
click node_collections "https://github.com/quii/learn-go-with-tests/blob/main/arrays/v8/sum.go"
click node_dependency_injection "https://github.com/quii/learn-go-with-tests/blob/main/di/v2/di.go"
click node_concurrency "https://github.com/quii/learn-go-with-tests/blob/main/concurrency/v3/check_websites.go"
click node_context "https://github.com/quii/learn-go-with-tests/blob/main/context/v3/context.go"
click node_reflection "https://github.com/quii/learn-go-with-tests/blob/main/reflection/v10/reflection.go"
click node_file_processing "https://github.com/quii/learn-go-with-tests/blob/main/reading-files/blogposts.go"
click node_svg_clock "https://github.com/quii/learn-go-with-tests/blob/main/math/v6/clockface/clockface/main.go"
click node_generic_collections "https://github.com/quii/learn-go-with-tests/blob/main/generics/stack.go"
click node_http_server "https://github.com/quii/learn-go-with-tests/blob/main/http-server/v5/server.go"
click node_json_api "https://github.com/quii/learn-go-with-tests/blob/main/json/v3/server.go"
click node_persistence "https://github.com/quii/learn-go-with-tests/blob/main/io/v9/file_system_store.go"
click node_cli "https://github.com/quii/learn-go-with-tests/blob/main/command-line/v3/CLI.go"
click node_timed_games "https://github.com/quii/learn-go-with-tests/blob/main/time/v3/game.go"
click node_websocket_server "https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/server.go"
click node_game_logic "https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/texas_holdem.go"
click node_player_store "https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/file_system_store.go"
click node_testing_practice "https://github.com/quii/learn-go-with-tests/blob/main/mocking/v6/main.go"
click node_acceptance_testing "https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/testing.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_language,node_collections,node_data_types,node_dependency_injection toneBlue
class node_concurrency,node_context,node_reflection,node_file_processing,node_svg_clock,node_generic_collections toneAmber
class node_http_server,node_json_api,node_persistence,node_cli,node_timed_games,node_websocket_server,node_game_logic,node_player_store toneMint
class node_testing_practice,node_acceptance_testing toneRose
class node_learner toneIndigo
class node_curriculum toneTeal
```

## Components

### Go fundamentals

- [Language basics](https://github.com/quii/learn-go-with-tests/blob/main/hello-world/v1/hello.go): `hello-world/v1/hello.go`
- [Collections](https://github.com/quii/learn-go-with-tests/blob/main/arrays/v8/sum.go): `arrays/v8/sum.go`
- **Types and maps**
- [Dependency injection](https://github.com/quii/learn-go-with-tests/blob/main/di/v2/di.go): `di/v2/di.go`

### Focused topics

- [Concurrency patterns](https://github.com/quii/learn-go-with-tests/blob/main/concurrency/v3/check_websites.go): `concurrency/v3/check_websites.go`
- [Cancellation](https://github.com/quii/learn-go-with-tests/blob/main/context/v3/context.go): `context/v3/context.go`
- [Reflection](https://github.com/quii/learn-go-with-tests/blob/main/reflection/v10/reflection.go): `reflection/v10/reflection.go`
- [File processing](https://github.com/quii/learn-go-with-tests/blob/main/reading-files/blogposts.go): `reading-files/blogposts.go`
- [SVG clock](https://github.com/quii/learn-go-with-tests/blob/main/math/v6/clockface/clockface/main.go): `math/v6/clockface/clockface/main.go`
- [Generic collections](https://github.com/quii/learn-go-with-tests/blob/main/generics/stack.go): `generics/stack.go`

### Poker application

- [HTTP endpoints](https://github.com/quii/learn-go-with-tests/blob/main/http-server/v5/server.go): `http-server/v5/server.go`
- [JSON API](https://github.com/quii/learn-go-with-tests/blob/main/json/v3/server.go): `json/v3/server.go`
- [Disk persistence](https://github.com/quii/learn-go-with-tests/blob/main/io/v9/file_system_store.go): `io/v9/file_system_store.go`
- [Command line](https://github.com/quii/learn-go-with-tests/blob/main/command-line/v3/CLI.go): `command-line/v3/CLI.go`
- [Timed games](https://github.com/quii/learn-go-with-tests/blob/main/time/v3/game.go): `time/v3/game.go`
- [WebSocket games](https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/server.go): `websockets/v2/server.go`
- [Poker game logic](https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/texas_holdem.go): `websockets/v2/texas_holdem.go`
- [Player records](https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/file_system_store.go): `websockets/v2/file_system_store.go`

### Testing practice

- [Testing techniques](https://github.com/quii/learn-go-with-tests/blob/main/mocking/v6/main.go): `mocking/v6/main.go`
- [Acceptance testing](https://github.com/quii/learn-go-with-tests/blob/main/websockets/v2/testing.go): `websockets/v2/testing.go`

### Other components

- **Learner**
- [Learning guide](https://github.com/quii/learn-go-with-tests/blob/main/README.md): `README.md`

## Connections

- Learner → Learning guide: starts with (evidence: `README.md`)
- Learning guide → Language basics: introduces (evidence: `README.md`)
- Learning guide → Collections: covers (evidence: `README.md`)
- Learning guide → Types and maps: covers (evidence: `README.md`)
- Learning guide → Dependency injection: covers (evidence: `README.md`)
- Learning guide → Concurrency patterns: covers (evidence: `README.md`)
- Learning guide → Cancellation: covers (evidence: `README.md`)
- Learning guide → Reflection: covers (evidence: `README.md`)
- Learning guide → File processing: covers (evidence: `README.md`)
- Learning guide → SVG clock: covers (evidence: `README.md`)
- Learning guide → Generic collections: covers (evidence: `README.md`)
- Learning guide → HTTP endpoints: builds toward (evidence: `README.md`)
- Learning guide → JSON API: builds toward (evidence: `README.md`)
- Learning guide → Disk persistence: builds toward (evidence: `README.md`)
- Learning guide → Command line: builds toward (evidence: `README.md`)
- Learning guide → Timed games: extends with (evidence: `README.md`)
- Learning guide → WebSocket games: extends with (evidence: `README.md`)
- Learning guide → Testing techniques: covers (evidence: `README.md`)
- Learning guide → Acceptance testing: covers (evidence: `README.md`)
- WebSocket games → Player records: reads and writes (evidence: `websockets/v2/server.go`)
- WebSocket games → Poker game logic: dispatches game (evidence: `websockets/v2/server.go`)
- Learner → Testing techniques: practices with (evidence: `README.md`)
