Skip to content

io.EOF and bytesRead question #7

Open
@lvchangye

Description

I question whether to use buf[:bytesRead] before checking io.EOF since it is possible to get io.EOF and data at the same time, see io.Reader documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions