Making flag enumeration be more idiomatic
This commit is contained in:
parent
fbd9d6bbd6
commit
a3ce7ba3c1
@ -37,9 +37,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
flagClobber = 1 << 0
|
flagClobber = 1 << iota
|
||||||
flagForce = 1 << 1
|
flagForce
|
||||||
flagVerbose = 1 << 2
|
flagVerbose
|
||||||
)
|
)
|
||||||
|
|
||||||
func parse(filename string) (*config, error) {
|
func parse(filename string) (*config, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user