defval / di

🛠 A full-featured dependency injection container for go programming language.
MIT License
232 stars 13 forks source link

Parameter structs need an empty di tag on an entry else it gets ignored #17

Closed fionera closed 4 years ago

fionera commented 4 years ago

This is counter intuitive and should either be explained in the docs or removed

defval commented 4 years ago

Doc updated.

To avoid constant constructor changes, you can use di.Inject. Only struct pointers are supported as constructing result. And only di-taged fields will be injected.