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

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

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

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

欢迎转载,请尊重作者劳动成果,保留原站链接
老念博客🌈 » Error:run after build is not possible main file has non-main package or doesn’t contain main function

简单课程表 - 小念的个人博客