Documentation ¶
Overview ¶
Package fs provides a filesystem abstraction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExist = errors.New("file does not exist")
ErrNotExist is returned when a file does not exist.
Functions ¶
Types ¶
type FileInfo ¶
type FileInfo struct { Path string // path to the file relative to the filesystem Size int64 // size in bytes ModTime time.Time // modification time }
FileInfo describes a file.
type Interface ¶
Interface is a filesystem abstraction.
var Null Interface = null{}
Null contains no files and discards writes.
func NewMemWithFiles ¶
NewMemWithFiles creates an in-memory filesystem initialized with the given files.
Click to show internal directories.
Click to hide internal directories.