3 ms·
No, a simple conversion can create an interface containing a typed nil. No need for the reflect package, neither messing with internal representation: https://g
by 0xjnml 5y ago
No, a simple conversion can create an interface containing a typed nil. No need for the reflect package, neither messing with internal representation: https://go.dev/play/p/HGVNzf8gL-m https://go.dev/play/p/HGVNzf8gL-m
- MAGZine 5y agoThanks for the reflectless example. It's useful to see how you might get into this situation without reflection.