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
1 changed files with 2 additions and 1 deletions

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