Skip to content

Instantly share code, notes, and snippets.

@aubelsb2
Created January 30, 2019 02:18
Show Gist options
  • Save aubelsb2/6285003570274f10121fc84ae0c0a2f8 to your computer and use it in GitHub Desktop.
Save aubelsb2/6285003570274f10121fc84ae0c0a2f8 to your computer and use it in GitHub Desktop.
package main
import "log"
func main() {
v := 0
for i := 0; i < 16; i++ {
v <<= 1
v |= 1
log.Printf("%v", v)
v <<= 1
log.Printf("%v", v)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment