Add first cut at golang monitor program
This commit is contained in:
11
monitor/printchanges.go
Normal file
11
monitor/printchanges.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func printChanges(changes <-chan FileChange) {
|
||||
for change := range changes {
|
||||
fmt.Printf("[%s] %s\n", change.Operation, change.Path)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user