ioEOF
io.EOF is a sentinel error value in the Go standard library that signals the end of input in I/O operations. Defined in the io package, it is used by many readers to indicate that no more data is available from the underlying source.
In Go's I/O model, the Read method of an io.Reader returns two values: the number of bytes
Common usage patterns involve looping over a stream and checking for io.EOF after each Read. With newer
io.EOF is not an indication of an exceptional failure; it is a normal condition that marks the
Related concepts include other errors in the io package (such as io.ErrShortBuffer and io.ErrUnexpectedEOF) and interfaces