Documentation ¶
Overview ¶
Package memfs creates a watched in memory filesystem.
Package memfs creates a watched in memory filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Silent is a logger that throws away the log messages to /dev/null. Silent = log.New(ioutil.Discard, "memfs: ", log.Lshortfile|log.Ldate|log.Ltime) // Verbose is a logger that prints the log messages to Stderr. Verbose = log.New(os.Stderr, "memfs: ", log.Lshortfile|log.Ldate|log.Ltime) )
Functions ¶
func New ¶
func New(root string) (http.FileSystem, error)
New creates a new in memory filesystem at root.
func NewWithWatch ¶
func NewWithWatch(root string, watch bool) (http.FileSystem, error)
NewWithWatch creates a new in memory filesystem at root, we can specify whether we should watch for changes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.