The goal of this proposal is to simplify implementing fs.FS() on top of archive/tar
func (tr *Reader) NextOffset() (*Header, int, error)
that also returns the offset in the io.Reader the Header was found at, so that if you Seek() to this offset and call Next() you end up with the same Header / data
Proposal Details
The goal of this proposal is to simplify implementing fs.FS() on top of archive/tar
There was 2 "soft" rejected requests to implement fs.FS():
I could find 4 implementations that could benefit from that:
The idea would be to add
that also returns the offset in the io.Reader the Header was found at, so that if you Seek() to this offset and call Next() you end up with the same Header / data