Documentation ¶
Overview ¶
Package fs provides a mockable wrapper for io/fs.
Index ¶
- type Impl
- func (*Impl) FileInfoToDirEntry(info fs.FileInfo) fs.DirEntry
- func (*Impl) Glob(fsys fs.FS, pattern string) (matches []string, err error)
- func (*Impl) ReadDir(fsys fs.FS, name string) ([]fs.DirEntry, error)
- func (*Impl) ReadFile(fsys fs.FS, name string) ([]byte, error)
- func (*Impl) Stat(fsys fs.FS, name string) (fs.FileInfo, error)
- func (*Impl) Sub(fsys fs.FS, dir string) (fs.FS, error)
- func (*Impl) ValidPath(name string) bool
- func (*Impl) WalkDir(fsys fs.FS, root string, fn fs.WalkDirFunc) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { FileInfoToDirEntry(info fs.FileInfo) fs.DirEntry Glob(fsys fs.FS, pattern string) (matches []string, err error) ReadDir(fsys fs.FS, name string) ([]fs.DirEntry, error) ReadFile(fsys fs.FS, name string) ([]byte, error) Stat(fsys fs.FS, name string) (fs.FileInfo, error) Sub(fsys fs.FS, dir string) (fs.FS, error) ValidPath(name string) bool WalkDir(fsys fs.FS, root string, fn fs.WalkDirFunc) error }
Click to show internal directories.
Click to hide internal directories.