Fake Filesystem in GO
To create a simple interface for users to implement in memory filesystems.
Any struct that implementes the ffs.Fs interface detailed in ffs.go can make
use of the server package to serve its files over HTTP and 9p.
The fsutil package implements in-memory files that are compatible with the ffs.Writer
and ffs.File interface. The *os.File struct implements both of these as well.
./ffs http_port https_port 9p_port config_file
./ffs 8080 4430 5640 config.json
will create a default config.json if it doesn’t exist with
sample values, serving http, https, and 9p on the specified ports.