Thanks a million Totally missed that first err was not limited to the scope of the case or the go routine. On Wednesday, January 20, 2021 at 6:02:29 PM UTC-6 Carla Pfaff wrote:
> result <- Event{event, err} > > reads the `err` variable in one goroutine, and > > err = watcher.Add(dir) > > writes the same `err` variable in another goroutine. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0ac1571a-305a-4ad6-be7d-29fefd1a7a05n%40googlegroups.com.