Last active
August 29, 2015 14:24
-
-
Save tdshipley/eb664fb9f82fc2be12f7 to your computer and use it in GitHub Desktop.
If Statement in Go without extra Parenthesis
This file contains 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
if fileBlock[0] == 0xff && fileBlock[1] == 0xd8 && fileBlock[2] == 0xff && (fileBlock[3] == 0xe0 || fileBlock[3] == 0x0e1) { | |
result = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment