func main() { w, err := watcher.New() if err != nil { log.Error("Unable to start Watcher: %s", err) return } w.Start() log.Info("Watcher started.") q := make(chan bool) <-q }
func main() { go func() { w, err := watcher.New() if err != nil { log.Error("Unable to start watcher: %s", err) return } w.Start() }() startREST() }