Versions in this module Expand all Collapse all v0 v0.0.4 Aug 15, 2023 Changes in this version + func WalkDirectoryForFiles(dir string, validExts, excludeDirs []string) (files []string, err error) + type FileEvent byte + const FileEventDelete + const FileEventModify + const FileEventMove + const FileEventNone + func (e FileEvent) String() string + type FileEvents []FileEvent + func (e FileEvents) Bytes() []byte + func (e FileEvents) String() string + type FileUpdate struct + Event FileEvent + Path string + type FileUpdateStream chan *FileUpdate + type FileUpdates []*FileUpdate + type FileWatcher struct + func NewFileWatcher(dir string) (w *FileWatcher, files []string, err error) + func NewFileWatcherWithOptions(dir string, opts Options) (w *FileWatcher, files []string, err error) + func (w *FileWatcher) Close() + func (w *FileWatcher) GetFileUpdateStream() FileUpdateStream + func (w *FileWatcher) Suspend(updateEvent FileEvent) + type Options struct + BatchTimeout time.Duration + ExcludeDirs []string + ValidExtensions []string + func DefaultOptions() Options