Documentation ¶
Index ¶
- func New(writer io.Writer) afero.Fs
- type File
- func (w *File) Close() error
- func (w *File) Name() string
- func (w *File) Read([]byte) (n int, err error)
- func (w *File) ReadAt(p []byte, off int64) (n int, err error)
- func (w *File) Readdir(count int) ([]fs.FileInfo, error)
- func (w *File) Readdirnames(n int) ([]string, error)
- func (w *File) Seek(offset int64, whence int) (int64, error)
- func (w *File) Stat() (fs.FileInfo, error)
- func (w *File) Sync() error
- func (w *File) Truncate(size int64) error
- func (w *File) Write(p []byte) (n int, err error)
- func (w *File) WriteAt(p []byte, off int64) (n int, err error)
- func (w *File) WriteString(s string) (ret int, err error)
- type FileInfo
- type Fs
- func (w *Fs) Chmod(string, fs.FileMode) error
- func (w *Fs) Chown(string, int, int) error
- func (w *Fs) Chtimes(string, time.Time, time.Time) error
- func (w *Fs) Create(name string) (afero.File, error)
- func (w *Fs) Mkdir(name string, perm fs.FileMode) error
- func (w *Fs) MkdirAll(path string, perm fs.FileMode) error
- func (w *Fs) Name() string
- func (w *Fs) Open(name string) (afero.File, error)
- func (w *Fs) OpenFile(name string, _ int, _ fs.FileMode) (afero.File, error)
- func (w *Fs) Remove(name string) error
- func (w *Fs) RemoveAll(path string) error
- func (w *Fs) Rename(oldname string, newname string) error
- func (w *Fs) Stat(name string) (fs.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
func (*File) Readdirnames ¶
Readdirnames implements afero.File.
func (*File) Write ¶
Write implements afero.File. Subtle: this method shadows the method (Writer).Write of writerFile.Writer.
type Fs ¶
Click to show internal directories.
Click to hide internal directories.