Documentation ¶
Index ¶
- func Close(closer io.Closer) (err error)
- func ReadFullAt(r io.ReaderAt, buf []byte, off int64) (n int, err error)
- func Sync(path string) error
- type SystemOS
- func (*SystemOS) Create(op, name string) (*os.File, error)
- func (*SystemOS) Mkdir(op, path string, perm os.FileMode) error
- func (*SystemOS) MkdirAll(op, path string, perm os.FileMode) error
- func (*SystemOS) Open(op, name string) (*os.File, error)
- func (*SystemOS) OpenFile(op, name string, flag int, perm os.FileMode) (*os.File, error)
- func (*SystemOS) ReadDir(op, name string) ([]os.DirEntry, error)
- func (*SystemOS) ReadFile(op, name string) ([]byte, error)
- func (*SystemOS) Remove(op, name string) error
- func (*SystemOS) RemoveAll(op, name string) error
- func (*SystemOS) Rename(op, oldpath, newpath string) error
- func (*SystemOS) Stat(op, name string) (os.FileInfo, error)
- func (*SystemOS) Truncate(op, name string, size int64) error
- func (*SystemOS) WriteFile(op, name string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFullAt ¶ added in v0.3.0
ReadFullAt is an implementation of io.ReadFull() but for io.ReaderAt.
Types ¶
type SystemOS ¶ added in v0.5.6
type SystemOS struct{}
SystemOS represents an implementation of OS that simply calls the os package functions.
Click to show internal directories.
Click to hide internal directories.