# di [![Go Reference](https://pkg.go.dev/badge/git.sr.ht/~marcopolo/di.svg)](https://pkg.go.dev/git.sr.ht/~marcopolo/di) A small, straightforward, DI library for Go. ## Why another DI library? I wanted a DI library solution for libraries. Something that doesn't force users into a certain framework, yet works well with whatever the end user uses. I also wanted: - A single definition of all inputs and outputs. - A way to provide and override defaults clearly. - Generics to convey type information. ## Contributing and reporting bugs Contributions and bug reports welcome. Send patches and bugs to [~marcopolo/public-inbox@lists.sr.ht](https://lists.sr.ht/~marcopolo/public-inbox). Refer to https://git-send-email.io for a primer on how to submit patches.