Simulate left and right shift operators as in JavaScript

Yes, you already said that, but can you please share the exact code that produces the output? Taking your snippets from above and throwing them into main on the playground produces the cited compilation errors.

https://play.golang.org/p/240I3ZjBMle

1 Like