stdio

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

FileSystem is a no-op implementation of the FileSystem interface for standard input/output.

func New

func New(r io.Reader, w io.Writer) (*FileSystem, error)

Create a new FileSystem instance with the given reader and writer.

func (*FileSystem) Copy

func (fsys *FileSystem) Copy(source, target string) (err error)

func (*FileSystem) Create

func (fsys *FileSystem) Create(path string, attr *struct{}) (stream.File, error)

func (*FileSystem) Glob

func (fsys *FileSystem) Glob(pattern string) ([]string, error)

func (*FileSystem) Open

func (fsys *FileSystem) Open(path string) (fs.File, error)

func (*FileSystem) ReadDir

func (fsys *FileSystem) ReadDir(path string) ([]fs.DirEntry, error)

func (*FileSystem) Remove

func (fsys *FileSystem) Remove(path string) error

func (*FileSystem) Stat

func (fsys *FileSystem) Stat(path string) (fs.FileInfo, error)

func (*FileSystem) Wait

func (fsys *FileSystem) Wait(path string, timeout time.Duration) error

Jump to

Keyboard shortcuts

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