Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS represents a file system in memory.
func SingleFile ¶
SingleFile creates a file system that only contains a single file.
func (*FS) Base ¶ added in v1.1.10
Base returns the last element of path. Trailing slashes are removed before extracting the last element. If the path is empty, Base returns ".". If the path consists entirely of slashes, Base returns "/".
func (*FS) 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 (*FS) ReadDir ¶
ReadDir reads the directory named by dirname and returns a list of directory entries sorted by filename.