package watcher import ( "context" ) type fileWatcher struct { relPath string eventCh chan Event errCh chan error } func (fw *fileWatcher) Events(ctx context.Context) (<-chan Event, <-chan error) { return fw.eventCh, fw.errCh }