> On 8 May 2018, at 16:19, Michael Cohen <scude...@gmail.com> wrote:
> 
> Well no - the error I get is that I am attempting to call String() method on 
> a null receiver - so the caller just passed me a regular nil object.

They passed you a totally legit fmt.Stringer which then panicked when you 
called String() on it. That’s their fault.

>  I think I am supposed to detect the null receiver before calling String() on 
> it. I ended up using this little utility:

I really don’t think you are. But it’s your code. :)

//jb

-- 
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