A reflection based dependency injection toolkit for Go.
flatten
modifier to group tags for slices to allow providing
individual elements instead of the slice for a group value. See package
doucmentation for more information.golang.org/x/lint
.%+v
.Visualize
function to visualize the state of the container in the
GraphViz DOT format. This allows visualization of error types and the
dependency relationships of types in the container.CanVisualizeError
function to determine if an error can be visualized
in the graph.Name
option for Provide
to add named values to the container
without rewriting constructors. See package documentation for more
information.name:"..."
tags on nested Result Objects will now cause errors instead of
being ignored.dig.In
and dig.Out
now support value groups, making it possible to
produce many values of the same type from different constructors. See package
documentation for more information.