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 @@
|
||||
# 03 — Programowanie Cross-Platform (`path/filepath`, env vars, `runtime.GOOS`)
|
||||
|
||||
## Zadania (`crossos.go`)
|
||||
1. `ConfigPath(baseDir, appName string) string` — użyj `filepath.Join(baseDir, appName, "config.yaml")`.
|
||||
2. `EnvOrDefault(lookup func(string) (string, bool), key, fallback string) string` — pobierz zmienną ze wstrzykniętej funkcji `lookup` (np. `os.LookupEnv`) lub zwróć `fallback` gdy brak lub pusta.
|
||||
|
||||
## Uruchomienie testów
|
||||
```bash
|
||||
make test PKG=./exercises/02-engineering-2026/03-cross-platform-os
|
||||
```
|
||||
Reference in new issue
Block a user