Mix this block with previous:

`if err := readLine(... func(s string) {
    ...
}); err != nil { ...
```