//
// The map need not include parent directories for files contained
// in the map; those will be synthesized if needed.
-// But a directory can still be included by setting the MapFile.Mode's ModeDir bit;
-// this may be necessary for detailed control over the directory's FileInfo
+// But a directory can still be included by setting the MapFile.Mode's [fs.ModeDir] bit;
+// this may be necessary for detailed control over the directory's [fs.FileInfo]
// or to create an empty directory.
//
// File system operations read directly from the map,
// than a few hundred entries or directory reads.
type MapFS map[string]*MapFile
-// A MapFile describes a single file in a MapFS.
+// A MapFile describes a single file in a [MapFS].
type MapFile struct {
Data []byte // file content
- Mode fs.FileMode // FileInfo.Mode
- ModTime time.Time // FileInfo.ModTime
- Sys any // FileInfo.Sys
+ Mode fs.FileMode // fs.FileInfo.Mode
+ ModTime time.Time // fs.FileInfo.ModTime
+ Sys any // fs.FileInfo.Sys
}
var _ fs.FS = MapFS(nil)