Skip to content

Commit

Permalink
Add missing Godoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bodgit committed May 2, 2022
1 parent 68fafa5 commit 56418a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var (
errIncompleteRead = errors.New("sevenzip: incomplete read")
)

// A Reader serves content from a 7-Zip archive.
type Reader struct {
r io.ReaderAt
start int64
Expand All @@ -42,11 +43,14 @@ type Reader struct {
File []*File
}

// A ReadCloser is a Reader that must be closed when no longer needed.
type ReadCloser struct {
f []*os.File
Reader
}

// A File is a single file in a 7-Zip archive. The file information is in the
// embedded FileHeader. The file content can be accessed by calling Open.
type File struct {
FileHeader
zip *Reader
Expand Down

0 comments on commit 56418a1

Please sign in to comment.