Skip to content

Commit

Permalink
add SetDecompressors docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Apr 9, 2019
1 parent 40db096 commit f166b20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func newReader(a archive) (*Reader, error) {
return r, nil
}

// SetDecompressor sets or overrides a custom decompressor for the DEFLATE.
func (r *Reader) SetDecompressor(dcomp func(r io.Reader) io.ReadCloser) {
r.r.RegisterDecompressor(zip.Deflate, dcomp)
}
Expand Down

0 comments on commit f166b20

Please sign in to comment.