Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemFS ¶
type MemFS struct {
// contains filtered or unexported fields
}
MemFS represents a file system in memory.
func NewSingleFileFS ¶
NewSingleFileFS creates a file system that only contains a single file.
func NewTwoFilesFS ¶ added in v1.1.0
NewTwoFilesFS creates a file system that contains two files.
func (*MemFS) Join ¶
Join joins any number of path elements into a single path, separating them with slashes. Empty elements are ignored. The result is Cleaned. However, if the argument list is empty or all its elements are empty, Join returns an empty string.
func (*MemFS) ReadDir ¶
ReadDir reads the directory named by dirname and returns a list of directory entries sorted by filename.
Click to show internal directories.
Click to hide internal directories.