Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIsDir = errors.New("is a directory")
)
Functions ¶
This section is empty.
Types ¶
type FS ¶
Provide the in-memory implementation of the internal FS interface.
This is a simple in-memory filesystem that can be used for testing. It is not thread-safe. There are two ways to use this:
- Use the New() function to create a new FS instance and then use the WithFile() and WithError() options to populate the filesystem.
- Create a FS instance and then populate the Files, Dirs, and Errs fields directly.
Click to show internal directories.
Click to hide internal directories.