What problem does it solve?
Go developers often reinvent DI, orchestration, and test scaffolding. This skill provides a guided approach to using the pumped-go library to build dependency-injected, reactive patterns with executors, flows, and scopes, increasing consistency and testability across projects.
Core Features & Use Cases
- Executor patterns: Define package-level executors with Provide and Derive to compose dependencies in a type-safe graph.
- Flow orchestration: Create short-lived or multi-step flows with tracing and tag-based data passing.
- Reactive configuration: Use Reactive() and Accessor patterns to automatically re-resolve on config or data changes.
- Testability: Use WithPreset for mocking executors in tests and perform table-driven tests for coverage.
- Production readiness: Follow lifecycle patterns with OnCleanup, scope disposal, and graceful shutdown examples.
Quick Start
Install and import pumped-go, declare root scope, define package-level executors (var) as shown in the docs, resolve with pumped.Resolve, and run flows with pumped.Exec. In tests, use pumped.WithPreset to substitute mocks and verify behavior.