You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is valid after NewReader. I don't think we should document anything. In Go, it is useful to document if there is extra work needs to be done before making a call. Unless it is documented, it should just work if APIs allow you to make the call.
Using
go1.5
Is Reader.Header valid after NewReader or after the first Reader.Read?
The code clearly shows that the Reader.Header is read during NewReader and Reader.Reset, but the documentation does not mention when it is valid.
The text was updated successfully, but these errors were encountered: