Making flag enumeration be more idiomatic
This commit is contained in:
parent
fbd9d6bbd6
commit
a3ce7ba3c1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user