package
0.2.4
Repository: https://github.com/ncruces/go-fs.git
Documentation: pkg.go.dev

# README

An in memory fs.FS

GoDoc

The filesystem can be statically generated, or loaded (and modified) at runtime. It is safe for concurrent reads (not writes), and biased towards read performance.

File names should be valid according to fs.ValidPath. Directories are implicit. Files can be gzip-compressed in memory. Methods are provided to serve gziped content directly to accepting HTTP clients.

# Functions

Create creates an empty FileSystem instance.
Load loads the contents of an fs.FS into a new FileSystem instance.
LoadCompressed loads the contents of an fs.FS into a new FileSystem instance.

# Structs

FileSystem is the in memory fs.FS implementation.