dig v0.4.0 Release Notes
Release Date: 2017-06-12 // almost 7 years ago-
➕ Added
- ➕ Add
dig.In
embeddable type for advanced use-cases of specifying dependencies. - ➕ Add
dig.Out
embeddable type for advanced use-cases of constructors inserting types in the container. - ➕ Add support for optional parameters through
optional:"true"
tag ondig.In
objects. - ➕ Add support for value types and many built-ins (maps, slices, channels).
🔄 Changed
- [Breaking] Restrict the API surface to only
Provide
andInvoke
. - [Breaking] Update
Provide
method to accept variadic arguments.
✂ Removed
- [Breaking] Remove
Must*
funcs to greatly reduce API surface area. - Providing constructors with common returned types results in an error.
- ➕ Add