Hacker News new | ask | show | jobs
by wyufro 2619 days 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

1 comments

Yup that well could be it!