Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: A dependency injection library based on Go 1.18 Generics (github.com/samber)
2 points by samber on July 7, 2022 | hide | past | favorite | 1 comment


I extended the traditional DI pattern with:

- A Healtcheckable interface: expose services state, with error cause.

- A Shutdownable interface: gracefully shutdown services in reverse dependency order.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: