text indentation

This commit is contained in:
alessio 2016-08-02 00:52:17 +02:00
parent 09158b795d
commit 524ed2d234
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func (p *Project) Watching(){
if !Ignore(path,p.Watcher.Ignore) { if !Ignore(path,p.Watcher.Ignore) {
if (info.IsDir() && len(filepath.Ext(path)) == 0 && !strings.Contains(path, "/.")) || (InArray(filepath.Ext(path), p.Watcher.Exts)){ if (info.IsDir() && len(filepath.Ext(path)) == 0 && !strings.Contains(path, "/.")) || (InArray(filepath.Ext(path), p.Watcher.Exts)){
if p.Watcher.Preview { if p.Watcher.Preview {
fmt.Println(p.Name + ": " + path) fmt.Println(p.Name + ": \t" + path)
} }
if err = watcher.Add(path); err != nil { if err = watcher.Add(path); err != nil {
return filepath.SkipDir return filepath.SkipDir
@ -77,6 +77,8 @@ func (p *Project) Watching(){
} }
} }
fmt.Println("\nWatching..\n")
for { for {
select { select {
case event := <-watcher.Events: case event := <-watcher.Events: