From d1f51f2f72940e14d35e2d08cd05ed266cc65c01 Mon Sep 17 00:00:00 2001 From: alessio Date: Wed, 24 Aug 2016 15:30:42 +0200 Subject: [PATCH] gofmt file by file --- realize/watcher.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/realize/watcher.go b/realize/watcher.go index 3ba313e..180209d 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -195,6 +195,12 @@ func (p *Project) walks(watcher *fsnotify.Watcher) { } if inArray(filepath.Ext(path), p.Watcher.Exts) { files++ + go func() { + if err := p.fmt(path); err != nil { + fmt.Println(err) + } + }() + } else { folders++ }