Repository navigation
v1.0.0-rc2
Pre-release
Pre-release
·
449 commits
to master
since this release
- [Breaking] Lifecycle hooks now take a context.
- Add
fx.Inandfx.Outwhich exposes optional and named types.
Modules should embed these types instead of relying ondig.Inanddig.Out. - Add an
Errmethod to retrieve the underlying errors during the dependency
graph construction. The same error is also returned fromStart. - Graph resolution now happens as part of
fx.New, rather than at the beginning
ofapp.Start. This allows inspection of the graph errors throughapp.Err()
before the decision to start the app. - Add a
Loggeroption, which allows users to send Fx's logs to different
sink. - Add
fxtest.App, which redirects log output to the user'stesting.TBand
provides some lifecycle helpers.