Add first cut at golang monitor program

This commit is contained in:
Michael Wolf
2026-01-01 12:26:54 -06:00
parent 4257a9b615
commit 3bece46638
8 changed files with 238 additions and 0 deletions

11
monitor/printchanges.go Normal file
View 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)
}
}