chore: initialize containerized Go learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
84be3e5d77
64 files changed
+1382
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# 07 — Współbieżność (`goroutines`, `channels`, `sync.WaitGroup`, `context`)
|
||||
|
||||
## Zadania (`concurrency.go`)
|
||||
1. `ParallelSum(chunks [][]int) int` — policz sumę każdego kawałka równolegle w goroutines (użyj kanału lub `sync.WaitGroup` + `sync/atomic` / mutex) i zwróć łączną sumę.
|
||||
2. `WaitOrCancel(ctx context.Context, ch <-chan string) (string, error)` — użyj `select` na `ch` i `ctx.Done()`.
|
||||
|
||||
## Uruchomienie testów (z `-race`!)
|
||||
```bash
|
||||
make test PKG=./exercises/01-core/07-concurrency
|
||||
```
|
||||
Reference in new issue
Block a user