The panic you get is because CollectorGoogleAnalytics does not
implement ICollector, since GetName is defined on type
*CollectorGoogleAnalytics and not CollectorGoogleAnalytics.
This works (I changed line 24): https://play.golang.org/p/SIFh3W3qhW
On Saturday, October 15, 2016 at 4:02:51 AM UTC+2, Paulo Coutinho wrote:
> I made an example to my problem:
> But what i need is have some plugins that use an interface to return some
> data. But the plugin is auto inserted in a map of type:
> or can be (will be better):
> After get the type by string of map i want create a new instance of it.
> Can anyone help me?
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.