Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileFS ¶
type FileFS struct { // File is the compressed file backing the FileFS. File fs.File // If file is compressed, setting this field will // transparently decompress reads. Compression archiver.Decompressor }
FileFS allows accessing a file on disk using a consistent file system interface. The value should be the path to a regular file, not a directory. This file will be the only entry in the file system and will be at its root. It can be accessed within the file system by the name of "." or the filename.
If the file is compressed, set the Compression field so that reads from the file will be transparently decompressed.
func (FileFS) Open ¶
Open opens the named file, which must be the file used to create the file system.
Click to show internal directories.
Click to hide internal directories.