if I run this program in the playground, I get: timeout running program 
Program exited: status 1
https://play.golang.org/p/5cDYasXtl_n

If I run it on my macos Catalina machine with go 1.16 beta I get a data 
race warning

```
WARNING: DATA RACE
Read at 0x00c00011a2a0 by goroutine 10:
  main.New.func1()
     watcher/cmd/main.go:52 +0x29a

Previous write at 0x00c00011a2a0 by main goroutine:
  main.New()
     watcher/cmd/main.go:65 +0x36f
  main.main()
     watcher/cmd/main.go:91 +0x154

Goroutine 10 (running) created at:
  main.New()
     watcher/cmd/main.go:45 +0x304
  main.main()
     watcher/cmd/main.go:91 +0x154
```
I do not see any writing except in one spot in line 91.

What am I missing?

Thanks

-- 
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/1c8a21e9-d6fd-4968-a169-bf5dfa56f24cn%40googlegroups.com.

Reply via email to