Document lifecycle concepts, companion packages, and API reference.
Add gitignore for coverage artifacts.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add RequireOpts, RequireWithOpts, and GetModule. Move helpers to
lifecycle_internal.go and errors to errors.go. Remove unused GenericModule.
Co-authored-by: Cursor <cursoragent@cursor.com>
Guard against double setup when autoload runs dependencies early, tear down
in reverse setup order, roll back on partial failure, and detect circular
Depends chains.
Co-authored-by: Cursor <cursoragent@cursor.com>
- mapToString is ordered according to setup
- setupSingle & teardownSingle no longer return "ok" states
- teardown functions support errors
- setup and teardown functions receive module