Skip to content

Instantly share code, notes, and snippets.

@danesparza
Created April 7, 2017 21:39
Show Gist options
  • Save danesparza/e94955ce29a3d593be0f37ff8dbeab6d to your computer and use it in GitHub Desktop.
Save danesparza/e94955ce29a3d593be0f37ff8dbeab6d to your computer and use it in GitHub Desktop.
Golang bitshift test
package main
import (
"log"
)
const (
configRST = (1 << 15)
configHeat = (1 << 13)
)
func main() {
log.Println("Initializing")
log.Printf("The value of configRST is now %v\n", configRST)
log.Printf("The value of configHeat is now %v\n", configHeat)
log.Println("Exiting")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment