Created
July 29, 2017 11:00
-
-
Save bam6o0/71aedd87c264e059b58f6562a858192e to your computer and use it in GitHub Desktop.
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
package main | |
import "fmt" | |
func main() { | |
const ( | |
ZERO = iota | |
ONE = iota | |
TWO = iota | |
THREE = iota | |
FOUR = iota | |
) | |
const ( | |
a = iota | |
b | |
c | |
d | |
e | |
) | |
const ( | |
bit0 = 1 << iota | |
bit1 | |
bit2 | |
) | |
fmt.Println(ZERO, ONE, TWO, THREE, FOUR) | |
fmt.Println(a, b, c, d, e) | |
fmt.Println(bit0, bit1, bit2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment