go-fs

module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: MIT

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

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL