普通的萌新程序员: # command-line-arguments C:\Users\Peter\AppData\Local\Temp\go-build896926502\b001\_x002.o: In function `Initialize': C://src/getForgroundWin/:22: undefined reference to `GetSystemTimes' C:\Users\Peter\AppData\Local\Temp\go-build896926502\b001\_x002.o: In function `GetCPUUseRate': C://src/getForgroundWin/:36: undefined reference to `GetSystemTimes' : error: ld returned 1 exit status 你用的是微软的 C++ build tools 吗?
Go语言使用http下载文件
Go语言使用CGO获取Windows的CPU使用率