Created
April 7, 2017 21:39
-
-
Save danesparza/e94955ce29a3d593be0f37ff8dbeab6d to your computer and use it in GitHub Desktop.
Golang bitshift test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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