win10编译golang程序报病毒错误

错误为command-line-arguments: open C:\Users\ADMINI~1\AppData\Local\Temp\go-build435947867\b001\exe\a.out.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

解决办法,将Local/Temp目录添加到病毒排除项即可。

1.找到病毒和威胁防护

win10编译golang程序报病毒错误_第1张图片

2.点击管理设置

win10编译golang程序报病毒错误_第2张图片

 3.添加排除项

win10编译golang程序报病毒错误_第3张图片

win10编译golang程序报病毒错误_第4张图片

你可能感兴趣的:(golang)