```go
const (
ContinueOnError ErrorHandling = iota // Return a descriptive error.
ExitOnError // Call os.Exit(2).
PanicOnError // Call panic with a descriptive error.
)
```
在看flag源码的时候,ExitOnError,注解中显示是2,按道理来讲,continueOnError不应该是0,然后顺序加1,所以ExitOnError这个应该是1吧,为什么会是2呢?
```go
const (
ContinueOnError ErrorHandling = iota // Return a descriptive error.
ExitOnError // Call os.Exit(2).
PanicOnError // Call panic with a descriptive error.
)
// ContinueOnError = 0
// ErrorHandling = 1
// ExitOnError = 2
// PanicOnError = 3
```
#2