package
0.53.1
Repository: https://github.com/shulhan/share.git
Documentation: pkg.go.dev

# Functions

Merge one or more instances of MemFS into single hierarchy.
New create and initialize new memory file system from directory Root using list of regular expresssion for Including or Excluding files.
NewNode create a new node based on file information "fi".
NewPathNode create and initialize new PathNode.
NewWatcher return a new file watcher that will inspect the file for changes for `path` with period specified by duration `d` argument.

# Constants

DefaultEmbedGoFileName default file output for GoEmbed.
DefaultEmbedPackageName default package name for GoEmbed.
DefaultEmbedVarName default variable name for GoEmbed.
FileStateCreated when new file is created.
FileStateDeleted when the file has been deleted.
FileStateUpdateContent when the content of file is modified.
FileStateUpdateMode when the mode of file is modified.

# Structs

DirWatcher is a naive implementation of directory change notification.
EmbedOptions define an options for GoEmbed.
MemFS contains directory tree of file system in memory.
Node represent a single file.
NodeState contains the information about the file and its state.
Options to create and initialize the MemFS.
PathNode contains a mapping between path and Node.
SearchResult contains the result of searching where the Path will be filled with absolute path of file system in memory and the Snippet will filled with part of the text before and after the search string.
Watcher is a naive implementation of file event change notification.
WatchOptions define an options for the MemFS Watch method.

# Type aliases

FileState define the state of file.
WatchCallback is a function that will be called when Watcher or DirWatcher detect any changes on its file or directory.