On Tue, Aug 22, 2017 at 03:00:18PM +0930, Dan Kortschak wrote:

[...]
> > Basically, if you encapsulate an interface in a struct, then call a 
> > function who's signature states it will return a pointer to that
> > struct, nil values returned from that function do not count as nil.
[...]
> This is explained here https://golang.org/doc/faq#nil_error

You might also be interested in reading [1] which has a bit more
background to help grasping the issue.

1. https://dave.cheney.net/2017/08/09/typed-nils-in-go-2

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