4 ms·
I'm speculating, but sizeof(bool) == 1, sizeof(struct{}) == 0 and sizeof(interface{}) == 8, so might be as simple as that. https://play.golang.org/p/5acy87JLD3
by wyufro 7y ago
I'm speculating, but sizeof(bool) == 1, sizeof(struct{}) == 0 and sizeof(interface{}) == 8, so might be as simple as that.
https://play.golang.org/p/5acy87JLD3i https://play.golang.org/p/5acy87JLD3i
- Insanity 7y agoYup that well could be it!