Versions in this module Expand all Collapse all v1 v1.2.0 Mar 6, 2023 Changes in this version + type DefaultFs struct + func (DefaultFs) Chtimes(name string, atime, 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) Readlink(name string) (string, 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) Symlink(oldname, newname string) 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 + func (DefaultFs) WriteFile(filename string, data []byte, perm os.FileMode) error + type FakeFs struct + func (fs *FakeFs) Chtimes(name string, atime, mtime time.Time) error + func (fs *FakeFs) Create(name string) (File, error) + func (fs *FakeFs) MkdirAll(path string, perm os.FileMode) error + func (fs *FakeFs) ReadDir(dirname string) ([]os.FileInfo, error) + func (fs *FakeFs) ReadFile(filename string) ([]byte, error) + func (fs *FakeFs) Readlink(name string) (string, error) + func (fs *FakeFs) Remove(name string) error + func (fs *FakeFs) RemoveAll(path string) error + func (fs *FakeFs) Rename(oldpath, newpath string) error + func (fs *FakeFs) Stat(name string) (os.FileInfo, error) + func (fs *FakeFs) Symlink(oldname, newname string) error + func (fs *FakeFs) TempDir(dir, prefix string) (string, error) + func (fs *FakeFs) TempFile(dir, prefix string) (File, error) + func (fs *FakeFs) Walk(root string, walkFn filepath.WalkFunc) error + func (fs *FakeFs) WriteFile(filename string, data []byte, perm os.FileMode) error + 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) + Readlink func(name string) (string, error) + Remove func(name string) error + RemoveAll func(path string) error + Rename func(oldpath, newpath string) error + Stat func(name string) (os.FileInfo, error) + Symlink func(oldname, newname string) error + TempDir func(dir, prefix string) (string, error) + TempFile func(dir, prefix string) (File, error) + Walk func(root string, walkFn filepath.WalkFunc) error + WriteFile func(filename string, data []byte, perm os.FileMode) error + var Fs Filesystem = DefaultFs{} + func NewFakeFs(fakeFsRoot string) (Filesystem, func(), error)