LabscoMCP early access ↗

The samber/do v2 container holds a Go application's services in one place, builds each one the first time something asks for it, and shuts them all down in order when the app stops.

WHEN TO USE

SCOPE

USE FOR

  • Wire a Go application's services into a samber/do dependency-injection container.
  • Convert manual constructor injection into a samber/do container.
  • Organize service registration into samber/do packages grouped by module.
  • Add health checks and graceful shutdown to a samber/do-managed application.