Documentation ¶
Overview ¶
Package ioutil provides a mockable wrapper for io/ioutil.
Index ¶
- type Impl
- func (*Impl) NopCloser(r io.Reader) io.ReadCloser
- func (*Impl) ReadAll(r io.Reader) ([]byte, error)
- func (*Impl) ReadDir(dirname string) ([]fs.FileInfo, error)
- func (*Impl) ReadFile(filename string) ([]byte, error)
- func (*Impl) TempDir(dir string, pattern string) (name string, err error)
- func (*Impl) TempFile(dir string, pattern string) (f *os.File, err error)
- func (*Impl) WriteFile(filename string, data []byte, perm fs.FileMode) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { NopCloser(r io.Reader) io.ReadCloser ReadAll(r io.Reader) ([]byte, error) ReadDir(dirname string) ([]fs.FileInfo, error) ReadFile(filename string) ([]byte, error) TempDir(dir string, pattern string) (name string, err error) TempFile(dir string, pattern string) (f *os.File, err error) WriteFile(filename string, data []byte, perm fs.FileMode) error }
Click to show internal directories.
Click to hide internal directories.