goland 報錯 Main file has non-main package or doesn’t contain main function

錯誤現象: Error: Run after build is not possible Main file has non-main package or doesn't contain main function 解決方法: 原因:源碼需要建立在src目錄下, 啓動入口包名需要是main
相關文章
相關標籤/搜索