interfaces. I would then make structs that fulfilled the *sub* interface
and attach them to an implementation of the *main* interface. But then I
got the idea that I should make the *main* interface just be functions, and
then build structs that were made up of other structs that implemented all
of the needed function calls. This way a function could move from one
struct to another and the over all duck typing would be maintained.
Is the sane? A bad practice? Do I not understand interface composition?
Thanks in advance.
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 email@example.com.
For more options, visit https://groups.google.com/d/optout.