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.找到病毒和威胁防护

2.点击管理设置

3.添加排除项

相关推荐
圣殿骑士-Khtangc17 小时前
Go错误处理最佳实践进阶从error到panic的完整指南
golang
运维开发笔记18 小时前
3.6 Go defer 语句学习笔记
golang
FfHUCisI19 小时前
Golang HTTP 路由设计与请求处理
开发语言·http·golang
存在morning20 小时前
【Python 开发实践 一】Python vs Go vs Java 三门语言对比
java·python·golang
圣殿骑士-Khtangc1 天前
Go字符串高效拼接性能对比与底层原理分析
服务器·前端·golang
xzlAwin2 天前
Win10安装Go语言多版本管理器g工具
开发语言·golang
FfHUCisI2 天前
Golang RESTful API 设计原则
开发语言·golang·restful
大可-2 天前
Go Air 热重载安装配置指南
开发语言·后端·golang
Zenova EdgeOS2 天前
工业边缘 SDK 设计实战:从 API 到 Python/Go 多语言工程落地
python·golang·php
名字还没想好☜2 天前
Go 的 unsafe.Pointer 实战:零拷贝 []byte↔string 转换与三条铁律
开发语言·后端·golang·go·unsafe