On Monday, September 12, 2016 at 4:20:46 PM UTC-5, Alex Flint wrote:
> Is it possible to have a struct that implements an interface, but have 
> pointers to the struct not implement the interface? The reason is that I 
> want to find all the places in our codebase that attempt to use a pointer 
> to a certain struct as a certain interface.

Just change (temporarily) the return value of one of the methods on that 
struct pointer (or otherwise alter the signature of the implementing 
method(s)). The compiler will point out all places you use it as that 

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.

Reply via email to