Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem interface { ReadDir(dirname string) ([]fs.DirEntry, error) ReadFile(filename string) ([]byte, error) Join(elem ...string) string // Base returns the last element of path. // Trailing path separators are removed before extracting the last element. // If the path is empty, Base returns ".". // If the path consists entirely of separators, Base returns a single separator. Base(filename string) string // Abs returns an absolute representation of path. Abs(path string) (string, error) }
FileSystem represents a file system.
var Local FileSystem = localFS{}
Click to show internal directories.
Click to hide internal directories.