Documentation
¶
Overview ¶
fsctx adds context.Context to io/fs APIs.
TODO: Specify policy for future additions to this package. See ioctx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirEntry ¶
type DirEntry interface {
Name() string
IsDir() bool
Type() os.FileMode
Info(context.Context) (os.FileInfo, error)
}
DirEntry is io/fs.DirEntry with context added.
type File ¶
type File interface {
Stat(context.Context) (os.FileInfo, error)
Read(context.Context, []byte) (int, error)
Close(context.Context) error
}
File is io/fs.File with context added.
type ReadDirFile ¶
ReadDirFile is io/fs.ReadDirFile with context added.
Click to show internal directories.
Click to hide internal directories.