dominikh / go-augeas

Go bindings for augeas
MIT License
21 stars 7 forks source link

None flag is 0, other flags start at 1 #7

Closed raphink closed 8 years ago

raphink commented 8 years ago

This aims to fix #6

dominikh commented 8 years ago

Let's use

const (
    SaveBackup Flag = 1 << iota
    ...
    None Flag = 0
)

instead so that all constants remain in a single block.

raphink commented 8 years ago

There you go.

raphink commented 8 years ago

Thanks for merging.