LiteIDE 错误: go build xxxxxx: no non-test Go files in xxxx

问题

c:/go/bin/go.exe build [C:/Users/Administrator/Desktop/go]
go build _/C_/Users/Administrator/Desktop/go: no non-test Go files in C:UsersAdministratorDesktopgo
错误: 进程退出代码 1.

 

原因

试了几次,发现以*_test.go结尾的文件都无法编译运行

解决方法

修改文件不以*_test.go结尾

原文地址:https://www.cnblogs.com/Zev_Fung/p/10371163.html