Error:run after build is not possible main file has non-main package or doesn't contain main functi

goland编译报错:
Error:run after build is not possible
main file has non-main package or doesn’t contain main function

解决方案:检查包名是不是:main 函数

学习初期低级错误很容易发生


版权声明:本文为oNuoZuo原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。