gofmt file by file
This commit is contained in:
parent
c8f159b66f
commit
d1f51f2f72
|
@ -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++
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue