News for hackers. Stuff that matters.
Re:Golang landmines by eternalban on Sunday September 18, 2016 @12:29PM (#12525882)
> In Go nil is a special identifier that represents a "zero value" for several types

I think this is the crux of the problem. OP's confusion would be addressed by

    var foo someType = someType.nil
    var bar someInterface = foo
    if (bar == interface.nil) // prints false without confusion

There are no comments on this comment yet.