go1.20.5
GoThrough

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 }