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++ }