samber/do is a lightweight Go dependency injection library that helps you manage service lifecycles, dependencies, and scopes in a clear and type-safe way.
v2 introduces a new Scope-based architecture, with support for transient services, improved dependency tracking, and circular dependency detection. Error handling and service naming are more consistent, and Healthcheck/Shutdown interfaces are now supported.
Changelog ![]()