switch to dep and integrate cobra

This commit is contained in:
Dominic Breuker committed 2018-02-13 10:00:38 +01:00
1 parent 949e206ac1
commit 2ed0991b9c
88 files changed
+12470 -2288

No files matched your search

+4
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 {