Hi Egon

Thank you very much for your feedback. You confirmed my assumption about di 
libraries in go and your links fortified this impression. Probably I have 
to rethink some old C# habits and map them to a more go idiomatic style.



> It's difficult to evaluate the API because the examples aren't real-world.
>
 
Fair point, I'll check if I can use some real code from my other projects 
for the examples. 


> I would consider something like this instead of fluent interface:
>
> container := sting.NewContainer(
> UsefulStruct{"Very useful"},
> sting.NamedTransient("alsoUseful", &UsefulStruct{"More useful"}),
> )
>
>
Hmm... I like your idea, I take a note for the next version, but for the 
current version I'll keep the public API. I don't want a bigger API so your 
idea would replace the current builder.Register and builder.RegisteredNamed 
functions.

Cheers,
Sandro

-- 
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.

Reply via email to