Skip to content

Instantly share code, notes, and snippets.

@bam6o0
Created July 29, 2017 11:00
Show Gist options
  • Save bam6o0/71aedd87c264e059b58f6562a858192e to your computer and use it in GitHub Desktop.
Save bam6o0/71aedd87c264e059b58f6562a858192e to your computer and use it in GitHub Desktop.
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