switch to dep and integrate cobra

This commit is contained in:
Dominic Breuker
2018-02-13 10:00:38 +01:00
parent 56f706b7e2
commit c92dd9992f
88 changed files with 12470 additions and 2288 deletions

View File

@@ -30,6 +30,10 @@ func NewInotify(ping chan struct{}) (*Inotify, error) {
return i, nil
}
func (i *Inotify) Start() {
go watch(i)
}
func (i *Inotify) Watch(dir string) error {
w, err := newWatcher(i.fd, dir, i.ping)
if err != nil {