Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WorkTempDir ¶
WorkTempDir creates and returns the working temp directory.
Types ¶
type File ¶
type File interface { io.Reader io.ReaderAt io.Writer io.Seeker io.Closer Name() string Stat() (fs.FileInfo, error) Truncate(int64) error }
File interface.
type Filesystem ¶
type Filesystem interface { Open(name string) (File, error) OpenFile(name string, flag int, perm fs.FileMode) (File, error) ChangeDir(name string) Filesystem Create(name string) (File, error) Remove(name string) error RemoveAll(path string) error Rename(oldpath, newpath string) error Mkdir(name string, perm fs.FileMode) error MkdirAll(path string, perm fs.FileMode) error Stat(name string) (fs.FileInfo, error) ReadDir(path string) ([]fs.DirEntry, error) }
Filesystem interface.
func OSTempFS ¶
func OSTempFS() Filesystem
OSTempFS returns the system temp directory as Filesystem.
Click to show internal directories.
Click to hide internal directories.