How does this Go code still work?