On Wed, Sep 28, 2016 at 2:57 PM, <paraiso.m...@gmail.com> wrote: > You need to actually get the type of a *bytes.Buffer with reflect.TypeOf > and compare types. > > https://play.golang.org/p/iqv16ibt9w >
OP is using go/types, not reflect. using something like so might work: https://play.golang.org/p/sJ8u6cZjZ1 (for some reason, it won't work in the playground...) 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.