1
0
mirror of https://github.com/golang/go synced 2024-11-07 15:06:16 -07:00

io: add a new ReadSeekCloser interface

Research showed that this interface is defined frequently enough in real-world usage to justify its addition to the standard library.

Fixes #40962
This commit is contained in:
Mohamed Attahri 2020-10-12 22:22:09 -04:00
parent 4b81ee3f5f
commit 6a45be66b4

View File

@ -149,7 +149,8 @@ type ReadSeeker interface {
Seeker
}
// ReadSeekCloser is the interface that groups the basic Read, Seek and Close methods.
// ReadSeekCloser is the interface that groups the basic Read, Seek and Close
// methods.
type ReadSeekCloser interface {
Reader
Seeker