Documentation ¶
Overview ¶
Package bufferfs provides a fs.FS wrapper for other fs.FS with a fs.File that implements io.Seeker and io.ReaderAt.
Index ¶
- Variables
- type FS
- type File
- func (f *File) Close() (err error)
- func (f *File) Name() string
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) ReadDir(count int) (fi []fs.DirEntry, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (fs.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOutOfRange = errors.New("out of range")
)
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS implements a read-only meta file system where failing method calls to higher level file systems are passed to other file systems.
Click to show internal directories.
Click to hide internal directories.