~marcopolo/di

Minimal DI for Go
d9e72376 — Marco Munizaga 9 months ago
remove the ability to provide a slice of function constructors
ac21236d — Marco Munizaga 9 months ago
fix some bugs around providing slices []T
50c247a2 — Marco Munizaga 9 months ago
allow checking if a Provide is Nil

refs

main
browse  log 

clone

read-only
https://git.marcopolo.io/~marcopolo/di
read/write
git@git.marcopolo.io:~marcopolo/di

You can also use your local clone with git send-email.

#di

Go Reference

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.

Refer to https://git-send-email.io for a primer on how to submit patches.