On Sun, Oct 21, 2018 at 9:53 PM Trig <[email protected]> wrote: > Is it possible, somehow, to use reflection to utilize the call to > gob.Register()? Something like: > > gob.Register(m.Type().In(0)) > > this should do:
gob.Register(reflect.New(m.Type().In(0)).Elem().Interface()) hth, -s -- 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 protected]. For more options, visit https://groups.google.com/d/optout.
