gofmt file by file

This commit is contained in:
alessio 2016-08-24 15:30:42 +02:00
parent c8f159b66f
commit d1f51f2f72
1 changed files with 6 additions and 0 deletions

View File

@ -195,6 +195,12 @@ func (p *Project) walks(watcher *fsnotify.Watcher) {
} }
if inArray(filepath.Ext(path), p.Watcher.Exts) { if inArray(filepath.Ext(path), p.Watcher.Exts) {
files++ files++
go func() {
if err := p.fmt(path); err != nil {
fmt.Println(err)
}
}()
} else { } else {
folders++ folders++
} }