pack.FileLike
// FileLike abstracts the few methods we need, so we can test without needing real files.
type FileLike interface {
Name() string
Stat() (fs.FileInfo, error)
Read([]byte) (int, error)
Close() error
}
// FileLike abstracts the few methods we need, so we can test without needing real files.
type FileLike interface {
Name() string
Stat() (fs.FileInfo, error)
Read([]byte) (int, error)
Close() error
}