A package that helps in creation of golang dependency injections
The Talaria of Mercury (Latin: tālāria) are winged sandals, a symbol of the Greek messenger god Hermes (Roman equivalent Mercury).
This package is heavily inpired by Modular Dependency Injection module
The strategy for building an instance with its dependencies comprise register all objects in a module and manufactures them on demand or in single-instance form(singleton). This ‘registration’ is called Bind.
There are a few ways to build a Bind to register object instances:
- Bind.singleton: Build an instance only once when the module starts.
- Bind.lazySingleton: Build an instance only once when prompted.
- Bind.factory: Build an instance on demand.
- Bind.instance: Adds an existing instance.