При запуске этой команды go get github.com/go-vgo/robotgo Я получаю эту ошибку:
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:174:13: undefined: windows.EnumProcesses
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:212:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:216:12: undefined: windows.ERROR_INVALID_PARAMETER
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:281:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:384:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:448:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:494:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:798:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:813:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:847:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION
C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:847:32: too many errors
Go версия 1.9
один раз Я обновил sys / windows Я начал получать это исключение:
D:\golang\prj4\src>go build main.go
# github.com/go-vgo/robotgo
In file included from ./bitmap/../base/str_io_c.h:2,
from ./bitmap/goBitmap.h:17,
from C:\Users\<removed>\go\src\github.com\go-vgo\robotgo\robotgo.go:45:
./bitmap/../base/zlib_util_c.h:2:10: fatal error: zlib.h: No such file or directory
2 | #include <zlib.h>
| ^~~~~~~~
compilation terminated.