module
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Dec 19, 2024
License: MIT
Opens a new window with license information.
README
¶
fs.FS implementations and utilities
This repo will house various fs.FS
implementations and utilities.
For now, an in memory fs.FS
implementation and static generator is provided.
Why?
There are several alternative in memory fs.FS
implementations,
as well as many static file embedding tools.
Why invent this wheel again?
Requirements:
- load files at runtime (e.g. server startup), or embed them statically in the executable;
- load files directly from disk during development;
- multiple file systems in the same app;
- serve gzipped content efficiently;
- support caching, ranges, etc.
Package memfs
and command memfsgen
implement this.
Directories
¶
Package memfs implements an in memory fs.FS.
|
Package memfs implements an in memory fs.FS. |
A command to statically generate a memfs.FileSystem.
|
A command to statically generate a memfs.FileSystem. |
Click to show internal directories.
Click to hide internal directories.