If I have an interface A and a pointer to a struct B that suffices the
definition of A, I can do this:
var a A = new(B)
But I can't do this:
var map[string]A = make(map[string]*B)
Is this a way to make this kind of thing happen so that I can
functions that consume a map of A's, and fire maps of any type that
suffices the A contract into them?
PS Here's the play: http://play.golang.org/p/XSRW80bcRj
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/groups/opt_out.