Open hasheddan opened 11 months ago
When the type is assigned, the interface is non-nil, even if the underlying value is nil. This is especially frustrating when you wrap a function that returns a concrete type in one that returns an interface.
nil
https://go.dev/play/p/uwSeDjq3SWP
When the type is assigned, the interface is non-nil, even if the underlying value is
nil
. This is especially frustrating when you wrap a function that returns a concrete type in one that returns an interface.https://go.dev/play/p/uwSeDjq3SWP