govet fixed, goreport
This commit is contained in:
parent
6820bde299
commit
d9635f84a7
@ -5,6 +5,7 @@
|
|||||||
[](https://raw.githubusercontent.com/tockins/realize/v1/LICENSE)
|
[](https://raw.githubusercontent.com/tockins/realize/v1/LICENSE)
|
||||||
[](https://github.com/tockins/realize-examples)
|
[](https://github.com/tockins/realize-examples)
|
||||||
[](https://gitter.im/tockins/realize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[](https://gitter.im/tockins/realize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
[](https://goreportcard.com/report/github.com/tockins/realize)
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
@ -31,7 +31,6 @@ func (h *Config) Watch() error {
|
|||||||
// loop projects
|
// loop projects
|
||||||
wg.Add(len(h.Projects))
|
wg.Add(len(h.Projects))
|
||||||
for k := range h.Projects {
|
for k := range h.Projects {
|
||||||
h.Projects[k].Path = h.Projects[k].Path
|
|
||||||
go h.Projects[k].watching()
|
go h.Projects[k].watching()
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
@ -122,7 +121,8 @@ func (p *Project) watching() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(Red("Watching: "), pname(p.Name, 1), Magenta(files), "files", Magenta(folders), "folders \n")
|
fmt.Println(Red("Watching: "), pname(p.Name, 1), Magenta(files), "files", Magenta(folders), "folders")
|
||||||
|
fmt.Println()
|
||||||
|
|
||||||
go routines(p, channel, &wr)
|
go routines(p, channel, &wr)
|
||||||
p.reload = time.Now().Truncate(time.Second)
|
p.reload = time.Now().Truncate(time.Second)
|
||||||
@ -151,7 +151,7 @@ func (p *Project) watching() {
|
|||||||
wr.Wait()
|
wr.Wait()
|
||||||
channel = make(chan bool)
|
channel = make(chan bool)
|
||||||
}
|
}
|
||||||
err := p.fmt(event.Name[:i]+ext)
|
err := p.fmt(event.Name[:i] + ext)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(Red(err))
|
fmt.Println(Red(err))
|
||||||
|
Loading…
Reference in New Issue
Block a user