Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { TempDir(dir, prefix string) (string, error) MkdirAll(path string, perm os.FileMode) error Create(name string) (io.WriteCloser, error) OpenFile(name string, flag int, perm os.FileMode) (io.WriteCloser, error) RemoveAll(path string) error ReadDir(dirname string) ([]os.FileInfo, error) ReadFile(filename string) ([]byte, error) DirExists(path string) (bool, error) TempFile(dir, prefix string) (NameWriteCloser, error) Stat(path string) (os.FileInfo, error) }
Interface defines methods for interacting with an underlying file system.
func NewFileSystem ¶
func NewFileSystem() Interface
type NameWriteCloser ¶
type NameWriteCloser interface { io.WriteCloser Name() string }
Click to show internal directories.
Click to hide internal directories.