code: func (w *filePoller) sendEvent(e fsnotify.Event, chClose <-chan struct{}) error {
  	select {
  	case w.events <- e:
  	case <-chClose:
  		return fmt.Errorf("closed")
  	}
  	return nil
  }
docs: // sendEvent publishes the specified event to the events channel