inject
inject copied to clipboard
Use id to identify objects of the same type
The current way has 2 disadvantages:
- If there are 2 objects of the same type to be mapped into injector, the former one will be overwritten by the latter one.
- the tag format
injectis not encouraged bygo tool vet. A tag should have a value, which i think an ID would be an appropriate choice.