Files
moxa/_test/const12.go
2020-05-19 14:38:03 +02:00

18 lines
184 B
Go

package main
type Kind int
const (
None Kind = 0
Left Kind = 1 << iota
Right
Both Kind = Left | Right
)
func main() {
println(None, Left, Right, Both)
}
// Output:
// 0 2 4 6