Versions in this module Expand all Collapse all v0 v0.3.1 Aug 21, 2021 Changes in this version + type DefaultFs struct + func (DefaultFs) Chtimes(name string, atime time.Time, mtime time.Time) error + func (DefaultFs) Create(name string) (File, error) + func (DefaultFs) MkdirAll(path string, perm os.FileMode) error + func (DefaultFs) ReadDir(dirname string) ([]os.FileInfo, error) + func (DefaultFs) ReadFile(filename string) ([]byte, error) + func (DefaultFs) Remove(name string) error + func (DefaultFs) RemoveAll(path string) error + func (DefaultFs) Rename(oldpath, newpath string) error + func (DefaultFs) Stat(name string) (os.FileInfo, error) + func (DefaultFs) TempDir(dir, prefix string) (string, error) + func (DefaultFs) TempFile(dir, prefix string) (File, error) + func (DefaultFs) Walk(root string, walkFn filepath.WalkFunc) error + type FSErrorHandler func(err error) + type FSEventHandler func(event fsnotify.Event) + type FSWatcher interface + AddWatch func(path string) error + Init func(FSEventHandler, FSErrorHandler) error + Run func() + func NewFsnotifyWatcher() FSWatcher + type File interface + Close func() error + Name func() string + Sync func() error + Write func(b []byte) (n int, err error) + type Filesystem interface + Chtimes func(name string, atime time.Time, mtime time.Time) error + Create func(name string) (File, error) + MkdirAll func(path string, perm os.FileMode) error + ReadDir func(dirname string) ([]os.FileInfo, error) + ReadFile func(filename string) ([]byte, error) + Remove func(name string) error + RemoveAll func(path string) error + Rename func(oldpath, newpath string) error + Stat func(name string) (os.FileInfo, error) + TempDir func(dir, prefix string) (string, error) + TempFile func(dir, prefix string) (File, error) + Walk func(root string, walkFn filepath.WalkFunc) error + func NewFakeFs() Filesystem