Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ncruces/go-fs
http.FileSystem implementations and utilities
https://github.com/ncruces/go-fs
Last synced: 14 days ago
JSON representation
http.FileSystem implementations and utilities
- Host: GitHub
- URL: https://github.com/ncruces/go-fs
- Owner: ncruces
- License: mit
- Created: 2019-09-27T15:13:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T22:10:23.000Z (7 months ago)
- Last Synced: 2024-04-23T23:48:11.765Z (7 months ago)
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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`](https://godoc.org/github.com/ncruces/go-fs/memfs)
and command [`memfsgen`](https://github.com/ncruces/go-fs/tree/master/memfsgen)
implement this.