Oh yes, that's smart, just use go/types to parse the bytes package. Great, thanks!
On Wednesday, September 28, 2016 at 9:27:20 AM UTC-4, Sebastien Binet wrote: > > > > On Wed, Sep 28, 2016 at 2:57 PM, <parais...@gmail.com <javascript:>> > 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.