package main
import "fmt"
const (
a, g = iota, iota
b = iota
c = iota
d = iota
e = -4
f = iota
)
func main() {
fmt.Printf("%T ,%v\n", a, a)
fmt.Printf("%T ,%v\n", b, b)
fmt.Printf("%T ,%v\n", c, c)
fmt.Printf("%T ,%v\n", d, d)
fmt.Printf("%T ,%v\n", e, e)
fmt.Printf("%T ,%v\n", f, f)
fmt.Printf("%T ,%v\n", g, g)
}
同行声明值一样,首行0。iota紧跟关键字首行出现时是0, 指定行后,继续递归