Go standard library extension, adding the missing parts used in the foomo ecosystem to keep DRY.
- fmt — Template string formatting with
%{.key}syntax - net — Free port allocation for tests and local development
- options — Generic functional options pattern (
Option,OptionE,Builder,BuilderE) - os — Typed
Getenv/MustGetenvfor scalars, slices, and maps with defaults - runtime — Enriched caller introspection (
Caller,CallerFunc,StackTrace) and panic recovery - sec — Safe path joining to prevent directory traversal (gosec G304)
- slices — Generic slice utilities:
Filter,Map,GroupBy(with error variants) - slog — Test-friendly
slog.Handlerthat writes totesting.TBoutput - strings — Case conversions, padding, validation, prefix/suffix matching, and composition
- testing — Tag-based test filtering via
GO_TEST_TAGS, crypto key helpers,ExampleTB - time — Context-aware
Sleep
Contributions are welcome! Please read the contributing guide.
Distributed under MIT License, please read the license file for more details.