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:\Users\Administrator\Desktop\go
错误: 进程退出代码 1.

 

 

原因

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

 

解决方法

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

 

posted @ 2019-02-13 17:48  阿水zev  阅读(2850)  评论(0编辑  收藏  举报