The highest tagged major version is
v3 .
Discover Packages
github.com/ngergs/websrv/v2
filesystem
package
Version:
v2.0.4
Opens a new window with list of versions in this module.
Published: Mar 24, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
MemoryFS only holds actual files, not the directory entries
NewMemoryFs initials a memory filesystem from the given targetPath
Open opens the given file from the in memory filesystem.
ReadFile is a more efficient shortcut to read a complete file content from the in memory filesystem.
Zip returns a deep copy of the filesystem where all files that match the given zip file extension are zipped.
Files that do not match are absent in the zipped version of the in memoryfilesystem.
type ReadFileFS struct {
fs .FS
}
ReadFileFS wraps a fs.FS and adds the ReadFile method
ReadFile is a more concise way to directly read a file into memory.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.