A dependency injection based application framework for Go.
Shutdown
: Support calling from Invoke
.ShutdownTimeout
option.Run
.fx.RecoverFromPanics
Option which allows Fx to recover from user-provided constructors
and invoked functions.fx.Private
that allows the constructor to limit the scope of its outputs to the wrapping
fx.Module
.ExitCode
ShutdownOption which allows setting custom exit code at the end of app
lifecycle.Wait
which returns a channel that can be used for waiting on application shutdown.UseLogLevel
and UseErrorLevel
methods to set
the level of the Zap logs produced by it.StartHook
, StopHook
, StartStopHook
that can be used with more function signatures.fx.WithLogger
can now be passed at fx.Module
level, setting custom logger at
Module
scope instead of the whole App
.fx.OnStart
and fx.OnStop
Annotations now work with annotated types that was
provided by the annotated constructor.fx.Supply
are now logged at Error
level, not
Info
.