emersion / go-message

✉️ A streaming Go library for the Internet Message Format and mail messages
MIT License
382 stars 111 forks source link

Allows detection of end of end of input empty results #160

Open arran4 opened 1 year ago

arran4 commented 1 year ago

Since there wasn't an obvious EOF passed through, or another form of special error. Header couldn't be made nil as it was publicly exposed and would constitute a signature change.

This does however introduce a behaviour change. message.Read can no return nil. Didn't seem to impact tests will probably impact users