writer

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFs added in v0.0.13

func NewFs(writer io.Writer) afero.Fs

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() error

Close implements afero.File.

func (*File) Name

func (f *File) Name() string

Name implements afero.File.

func (*File) Read

func (f *File) Read([]byte) (n int, err error)

Read implements afero.File.

func (*File) ReadAt

func (f *File) ReadAt(p []byte, off int64) (n int, err error)

ReadAt implements afero.File.

func (*File) Readdir

func (f *File) Readdir(count int) ([]fs.FileInfo, error)

Readdir implements afero.File.

func (*File) Readdirnames

func (f *File) Readdirnames(n int) ([]string, error)

Readdirnames implements afero.File.

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

Seek implements afero.File.

func (*File) Stat

func (f *File) Stat() (fs.FileInfo, error)

Stat implements afero.File.

func (*File) Sync

func (f *File) Sync() error

Sync implements afero.File.

func (*File) Truncate

func (f *File) Truncate(size int64) error

Truncate implements afero.File.

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

Write implements afero.File. Subtle: this method shadows the method (Writer).Write of writerFile.Writer.

func (*File) WriteAt

func (f *File) WriteAt(p []byte, off int64) (n int, err error)

WriteAt implements afero.File.

func (*File) WriteString

func (f *File) WriteString(s string) (ret int, err error)

WriteString implements afero.File.

type FileInfo

type FileInfo struct {
	io.Writer
	// contains filtered or unexported fields
}

func (*FileInfo) IsDir

func (f *FileInfo) IsDir() bool

IsDir implements fs.FileInfo.

func (*FileInfo) ModTime

func (f *FileInfo) ModTime() time.Time

ModTime implements fs.FileInfo.

func (*FileInfo) Mode

func (f *FileInfo) Mode() fs.FileMode

Mode implements fs.FileInfo.

func (*FileInfo) Name

func (f *FileInfo) Name() string

Name implements fs.FileInfo.

func (*FileInfo) Size

func (f *FileInfo) Size() int64

Size implements fs.FileInfo.

func (*FileInfo) Sys

func (f *FileInfo) Sys() any

Sys implements fs.FileInfo.

type Fs

type Fs struct {
	afero.ReadOnlyFs
	// contains filtered or unexported fields
}

func (*Fs) Name

func (w *Fs) Name() string

Name implements afero.Fs.

func (*Fs) Open

func (w *Fs) Open(name string) (afero.File, error)

Open implements afero.Fs.

func (*Fs) OpenFile

func (w *Fs) OpenFile(name string, _ int, _ fs.FileMode) (afero.File, error)

OpenFile implements afero.Fs.

func (*Fs) Stat

func (w *Fs) Stat(name string) (fs.FileInfo, error)

Stat implements afero.Fs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL