4

I'm using eaburns/Watch library on a windows machine, but when trying to get the package with go get github.com/eaburns/Watch I get the following errors:

main.go:159: undefined: syscall.Kill
main.go:169: undefined: syscall.Wait4
main.go:169: undefined: syscall.WNOHANG

Any reason why this happens only on windows computers? How to fix this?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
nicowernli
  • 3,250
  • 22
  • 37

1 Answers1

0

The syscall package is dependent on the operating system. syscall.Kill is for Unix/Linux/Mac systems, not Windows.

Use godoc syscall to get information on the syscall package for your system. This is explained in the Overview section in the package documentation:

https://golang.org/pkg/syscall/