Making flag enumeration be more idiomatic

This commit is contained in:
Alex Yatskov 2015-05-08 19:31:47 +09:00
parent fbd9d6bbd6
commit a3ce7ba3c1

View File

@ -37,9 +37,9 @@ import (
)
const (
flagClobber = 1 << 0
flagForce = 1 << 1
flagVerbose = 1 << 2
flagClobber = 1 << iota
flagForce
flagVerbose
)
func parse(filename string) (*config, error) {