Hi, I'm going to post few earlier DI discussions and other posts:
* https://web.archive.org/web/20140521180901/http://codegangsta.io:80/blog/2014/05/19/my-thoughts-on-martini/ * https://forum.golangbridge.org/t/goldi-lazy-dependency-injection-framework-for-go/1280 * https://www.tonymarston.net/php-mysql/dependency-injection-is-evil.html And... ignoring my opinions on DI... Code-wise it looks pretty good and nice to read. It's difficult to evaluate the API because the examples aren't real-world. I would consider something like this instead of fluent interface: container := sting.NewContainer( UsefulStruct{"Very useful"}, sting.NamedTransient("alsoUseful", &UsefulStruct{"More useful"}), ) But, I don't know how usable it would be in your use cases. + Egon On Monday, 2 October 2017 11:44:10 UTC+3, snmed wrote: > > Hi all > > I released my first open source go project: > https://bitbucket.org/snmed/sting > > It's a simple DI library and is used for my own projects. I'm not sure how > idomatic go it is, but I primarily started it to learn the go reflection > package and capabilities. > I'm sure there is still a lot to improve and the best way to find weak > spots, is to use or/and have some additional eyes on it. > > Any suggestions, constructive criticism and feedback is warmly welcome. > > Regards > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.