Skip to content

Commit

Permalink
Add SizeReadSeekCloser interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bodgit committed May 2, 2022
1 parent 7e1624e commit 13e906d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/util/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ package util

import "io"

// SizeReadSeekCloser is an io.Reader, io.Seeker, and io.Closer with a Size
// method.
type SizeReadSeekCloser interface {
io.Reader
io.Seeker
io.Closer
Size() int64
}

// Reader is both an io.Reader and io.ByteReader.
type Reader interface {
io.Reader
Expand Down

0 comments on commit 13e906d

Please sign in to comment.