3 ms·
In real code, the problem would usually occur not because you want a value to be nil but because you’re converting a value you already have to an interface. And
by masklinn 4y ago
In real code, the problem would usually occur not because you want a value to be nil but because you’re converting a value you already have to an interface. And that value happened to be a pointer which is nil.