Cgo rules have changed slightly in the upcoming Go 1.10. With the current beta1:
jb@kvar:~/e/s/g/z/notify $ go version
go version go1.10beta1 darwin/amd64
jb@kvar:~/e/s/g/z/notify $ go install
# github.com/zillode/notify
./watcher_fsevents_cgo.go:51: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
./watcher_fsevents_cgo.go:162: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFStringCreateWithCStringNoCopy
./watcher_fsevents_cgo.go:163: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
Cgo rules have changed slightly in the upcoming Go 1.10. With the current beta1:
The required changes are documented here:
https://go-review.googlesource.com/c/go/+/66332
I'll file a PR fixing it shortly. (Paths in the error are from a fork.)