(p string)
| 29 | type FileEvent string |
| 30 | |
| 31 | func NewFileEvent(p string) FileEvent { |
| 32 | if !filepath.IsAbs(p) { |
| 33 | panic(fmt.Sprintf("NewFileEvent only accepts absolute paths. Actual: %s", p)) |
| 34 | } |
| 35 | return FileEvent(p) |
| 36 | } |
| 37 | |
| 38 | type Notify interface { |
| 39 | // Start watching the paths set at init time |