chore: initialize containerized Go learning workbook (2026 DevOps/SRE)

This commit is contained in:
soda64 committed 2026-11-30 23:03:31 +01:00
commit 84be3e5d77
64 files changed
+1382

No files matched your search

@@ -0,0 +1,10 @@
# 09 — Wzorce Projektowe w Go (Functional Options, Worker Pool)
## Zadania (`patterns.go`)
1. `NewClient(opts ...Option) Client` — wzorzec **Functional Options** (`WithTimeout`, `WithRetries`, domyślne wartości `5s` i `3`).
2. `RunWorkerPool(workers int, jobs []int, fn func(int) int) []int` — przetwórz `jobs` przez `workers` goroutines i zwróć wyniki (w dowolnej lub tej samej kolejności — test sprawdza sumę wyników).
## Uruchomienie testów
```bash
make test PKG=./exercises/01-core/09-design-patterns
```