Is this idiomatic? When I'm checking for e.g. [io.EOF](http://golang.org/pkg/io/#pkg-variables) I normally just do

```go
if err := doSomething(); err == io.EOF {
    // special case
} else if err != nil {
    // something else
}
```

but it's entirely possible I've missed another way to do this kind of thing...